外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx

上传人:b****5 文档编号:17492492 上传时间:2022-12-06 格式:DOCX 页数:17 大小:1.06MB
下载 相关 举报
外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx_第1页
第1页 / 共17页
外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx_第2页
第2页 / 共17页
外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx_第3页
第3页 / 共17页
外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx_第4页
第4页 / 共17页
外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx_第5页
第5页 / 共17页
点击查看更多>>
下载资源
资源描述

外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx

《外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx》由会员分享,可在线阅读,更多相关《外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx(17页珍藏版)》请在冰豆网上搜索。

外文翻译基于LabVIEW的虚拟示波器研究和开发Word格式.docx

BasedonLabVIEW

Abstract:

ThispaperintroducesthedesignprocessofavirtualoscillographbasedonLabVIEW.Mainlyanalyzestheamplitudevalueandtimebaseadjustingmethodsduringthereal-timedisplay.Atthesametime,itsimplyintroducesthebasicthoughtwhenmeasuringtheperiodandfrequencyofthewaveformgatevoltagemethodanditsapplication.Attheendofthispaper,combiningtheparametermeasurementandwaveformdisplayofthevirtualoscillographwiththemodernmotorclose-looplock-phasespeedcontrol,itanalyzestheparametermeasurement'

seffectinPIDcontrol.

Keywords:

VirtualOscillograph;

Time-Base;

MotionControl

Ⅰ.INTRODUCTION

Intherapidlydevelopingindustrycontrolfield,measuringtechnologiesandapparatusbecomemoreandmoreimportant.Butbecauseofthedisadvantagesofthetraditionalinstrumentssuchashighprice,singlefunction,badexpansibility,etc.,theycanhardlymeettheindustryrequirement.Withthedevelopmentofcomputertechnologiesandvirtualinstruments(VIforshort),thescopedesignedbyusersbecomeswidely.TherearemanydifferentfunctionswiththesamehardwarewhichcanmaketwoormoremachinesworksynchronouslywiththeadvancedbustechnologiessuchasPXIbustechnology[1].Virtualinstrumentsbecomemoreandmorepopularforitsupstandingcharacteristicslikelowcost,multi-function,facilityandsoon.

Allmeasuringinstrumentsconsistofthreeparts:

dataacquisition,dataanalysisandresultsoutput[2].Inthesethreeparts,dataacquisitioncanbedonebythesystemhardwarelikeA/DmoduleordigitalI/Omodules.Dataanalysisandresultsoutputcanbecompletedbysoftwaresystembasedoncomputer.So,ifgivensomenecessarydataacquisitionhardware,ameasuringinstrumentbasedoncomputercanbeconstituted.Thesoftwaretechnologyistheessentialoneinthevirtualinstrument.[3]VisualC++,LabVIEW,LabWindows/CVI,VEEetc.arealldevelopmentsoftwareenvironment.LabVIEWisagraphicprogramminglanguagecalledGlanguage,whichcanbeusedinGPIB,VXI,PXI,PCIBusanddataacquisitioncardsbasedhardwaresystem,haspowerfulanalyzingability.Itsgraphicprogrammingmethodcanbeusedtofinishthetotalprogrambydataflowclearlyandsimply.Usingitsembeddedboardcarddriverinterface,wecanconvenientlyoperateaboardcard.[4,5]

Multi-channeldigitaloscillograph,whichmainlyusedinreal-timedataacquisition,isoneofthemostwidelyusedgeneralmeasuringinstruments.Italsocandisplaythechangesofsomeelectricsignalsandcomparethedifferencesamongdifferentsignals.Sotheresearchanddevelopmentofvirtualoscillographisthehotspotinthearea.MakinguseoftheGraphplatteinLabVIEW,youcanconvenientlyacquirethedynamicwaveformsandmakethemdisplayed.ButmostvirtualoscillographsbasedonLabVIEWusetheGraphplattetooperateandanalyzethewaveformdata.Althoughthisisveryfaciletouse,italsohasmanydisadvantages:

(1)Whenthewaveformchangesallthetime,thescreenwillkeeprefreshingandthegraphplattecouldnotproperlywork.

(2)Theoperationmethodcan'

tsatisfymostofoperatorsbecauseitisdifferentfromthetraditionoscillographinoperation.Tosolvetheseproblems,thispaperbringsforwardsomeways.Inthereal-timewaveformdisplay,weredevelopthewaveformoperationandintroducesomerelatedsoftwarearithmetic.Itintroducestheexploitingthinkingofadjustingdynamictimebaseandputforwardtwoconcepts:

theFIFOprocessandE-Mprocess.Inaddition,itintroducesasuccessfulgate-voltagemeasurewayinthemeasurementoftheperiodandfrequency,andbasedonwhich,thepaperputsforwardtheapplicationintheclose-looplock-phaseSystem.

II.RESEARCHONTHEMULTICENTERDIGITAL

OSCILLOGRAPH'

SSOFTWAREARITHMETIC

Thevirtualoscillographintroducedbythispaperismainlyusedinlaboratoryforthemeasurementandstorageofvariousanalogsignals.Themainfunctionsare:

dataacquisition,waveformdisplay,parametermeasurement,waveformstorageandreplayetc.Ithas64analogsignalinputchannelsandcantake8signalobservationsatthesametimewiththechoiceofswitchmatrix.Accordingtotherequirement,weusetheNI-6133Daqcardforthedataacquisition.TheblockdiagramofvirtualoscillographisshowninFig.1:

[6]

Nowwewillintroducethesoftarithmetictothebasicfunctionsofvirtualoscillograph.

A.CharacteristicsofGraphControl

InLabVIEW,therearethreecontrolsforwaveformdisplaying:

Graph,Chatandx-ygraph.Everycontrolhasitsownadvantages.ThispapertakesGraphcontrolforexampletodiscussthesoftarithmetictothebasicfunctionofvirtualoscillograph.Graphoscillographdisplaysallwaveformdatainputinthescreenatatime.Everytimewhenthewaveformdataareinput,thescreenwillbefreshed.[7]Usingitsownoperationtools,youcanmove,zoomthewaveformorusethecursorstomeasuretheparameters.Butitcouldnotworkwellondynamicwaveform.Soit'

snecessarytodevelopamoreconvenientoperationtooltoreal-timedisplayofdynamicwaveform.

Inthevirtualoscillographintroducedinthispaper,therearesomebasicfunctionssuchasamplitudeandpositionvalueadjustment,timebasechange,triggermodeselectionetc.Theoscillograph'

sfrontpanelisshowninfig.2.

B.AmplitudeValueAdjustment

Multi-centeroscillographcandisplaymorethanonewaveformatthesametime,soitisveryconvenienttocompareeverysignalchange.Everywaveformdisplayedshouldbeoperatedseparatelythroughtheselectingboxonthefrontpanel.Atfirst,wedistributethescreeninto10×

10gridsandseteverychannelaY-axis.Thevalueofeveryoneofthe10gridsintheY-axisisequaltothevalueofrelatedamplitudeknobcontrol.Withthepropertynodeofthewaveformgraph,youcansettheminimumvalueofeachY-axisas-5timesmuchastheknobvaluewhereasthemaximumvalueset5times.Sowhenyouchangetheamplitudeknobvalue,theminimumandthemaximumvalueoftherelevantY-axisshouldbechangedatthesametime,thewaveformdisplaycanbezoomedasrequired,andthezeropointpositioniskeptintheoriginallocation.

UseanarraytosavetheamplitudevalueseveryY-axischanged.Whenachannelisselected,putitsoldamplitudevaluetotheknobfirst;

andafteradjusting,replacetherelatedarrayelementwiththenewvalue.Andthentheamplitudevaluechangefunctionisfinished.

C.TimeBaseAdjustment

Timebaseadjustingisoneofthebasicfunctionsinoscillograph.Thetimebaseadjustingknob'

svalueshowsthetimeofeveryonegridofX-axisinthescreenwhichisthenodusduringtheoscillographdesignprocedure.

1)BasicClew

AccordingtothecharacteristicsoftheGraphcontrol,itdisplaysallthedatainputatatime.SodistributetheX-axisinto10gridsandmakeeverygrid'

stimet.IfthewaveformcouldbestridethewholeX-axis,thetimespenttocollectallthedatais10t.Supposetheboard'

ssamplingrateisf,inotherword,theboardcollectsfdataeverysecond.SothenumberNneededinthewaveformis:

N=f×

l0t=l0ft

(1)

Keepingtheboardsamplingatthefrequencyoff,theprogramreadsNdatapointsfromtheboardmemoryandputthemtotheoscillographineveryloop.ChangethetvalueistochangetheNvaluereadfromboardmemoryeverytime,andthusadjustthetimebaseinthereal-timesampling.

Butthroughtheexperimentwecansee,whenthetimebaseistoolong(>

100ms)ortooshort(<

500us),thewaveformdisplayedhastimelagstodifferentextend.Thatisbecausewhenthetimebaseistoolong(ifthelengthoftheneededwaveformexceeds1second),wemustwaitforenoughtimetogetallneededdatacollectedbytheboard,anddisplaythemonthescreenatatime.Sothatcancausediscontinuouswaveformdisplayedinthescreen.Whenthetimebaseistooshort,theNvaluereadeveryloopistoosmall,thenumberofdatapointsinonesecondshouldbereadformanytimes.Thereisanotherworktobedoneatthesametimeeveryloopinaddition.Soitwillcausethattheolddatacannotbereadintimeandmaybecoveredbythenewdatabecausetheboardissamplingalltime,theboardmemorywilloverflow.Soitisneededtodisposethenumberreadfromboardatlongandshorttimebaseseparately.

2)Longtimebase

Toavoidthetimelagdiscussedabove,itmustreducethenumberofdatareadfromsamplingboardeveryloop.ConsideringthedisplaycharacteristicsofGraphcontrol,itcannotputthedatapointsreadfromboardstothegrapheveryloopbecauseitwillmaketheoscillographrefreshingallthetime,andthewaveformdisplayedcouldnotbestridethewholeX-axis.Anarraycouldbesettosavethewaveformdatapointsdisplayed.Thearray'

scapacityisN,whichisthenumberofdatapointscalculatedviaEq.

(1).Supposethenumberofdatapointsreadfromboardcardeverytimeisafixedvaluem,whichisthenumberofdatapointstobereadatthepropertimebase.

Thewholeprocedureismadeupoftwoparts.First,setthewholearrayNULL.Atthebeginningofthedisplayprocedure,thearrayisnotfull.Soputthenewmdatapointsintotheendofthearray(Enqueue),andthendisplaythewholearrayvalueinthegraphcontrol.Acontinuouslymovingwaveformshouldbeshowedinthescreen.Second,whenthearrayisfull,getridoffirstmelementsofthearray;

movetherestN-melementsforwardthebeginningofthearray;

andputthenewmdatapointsintotheendofthearray.WecallthisprocessFIFO.Thenafullwaveformshouldbeshowedinthescreen,fromonesidetotheotherside.TheEnqueueandFIFOareshowninFig3.

Becausethenumberofdatapointsmread

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 高中教育

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1