多路數(shù)據(jù)采集與分析系統(tǒng)的設(shè)計及應(yīng)用外文文獻外文翻譯英文文獻范本_第1頁
多路數(shù)據(jù)采集與分析系統(tǒng)的設(shè)計及應(yīng)用外文文獻外文翻譯英文文獻范本_第2頁
多路數(shù)據(jù)采集與分析系統(tǒng)的設(shè)計及應(yīng)用外文文獻外文翻譯英文文獻范本_第3頁
多路數(shù)據(jù)采集與分析系統(tǒng)的設(shè)計及應(yīng)用外文文獻外文翻譯英文文獻范本_第4頁
多路數(shù)據(jù)采集與分析系統(tǒng)的設(shè)計及應(yīng)用外文文獻外文翻譯英文文獻范本_第5頁
已閱讀5頁,還剩11頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

附錄五中英文資料Multi-channeldatacollectionandanalysisofthedesignandapplicationAbstract:ThePapermainlyintroducesamultichanneldataacquisitionandanalysissystemcomposedofonePCandonemeasuringinstrument.Thesystemcantesteightproductsparallelly.Itreducesthetestcostandimprovesworkefficiency.Thepaperalsogivesthehardwarestructureandsoftwareflowdiagramofthesystem.Theapplicationinthegyrotestisalsointroducedbriefly.Keywords:communicationprot;dataacquisition;gyro;testWiththedevelopmentofcomputertechnologyandthedigitalmeasuringinstrument,usuallybycomputerandmeasuringinstrumentstocommunicatewitheachotherinreal-timedatacollectionanduseofcomputerpowerfulcomputingcapabilitytoconducttheanalysisofthedataprocessing.Particularlyinthelargevolumeofdata,measuringthelengthoftimeoccasions,suchastheGyro-tilttest,usingcomputerforautomaticcontrolofmeasuringinstruments,automaticdataacquisitionandanalysisitisparticularlyimportant,cansavealotofmanpowerandmaterialresourcestoimproveworkefficiency,reducecosts,Theconventionalmethodoftestingisusuallyameasuringinstrumentatthesametimecanonlytestaproduct,namelyacomputerandameasuringinstrumenttestsystemcanonlybecomposedofserialtesting.Totestmultipleproductsatthesametime,theyneedmultiplesystems,testingproductsinlargevolume,lowefficiency,suchasthecompositionofseveralsetsoftestsystem,anincreaseofcost.FirstonamachinewithaPCandameasuringinstrumentconsistingof8-waydatacollectionandanalysiswordsystem,whichcancarryoutmultiplesetsofproducttesting,atnoadditionalcostonthebasisofacomputergivefullplaytotheadvantagesofautomatictest,Improveworkefficiency.1 PrincipleThesystemhardwareandsoftwaresystem.APCthroughaRS232portandameasuringinstrumentconnected,PC-parallelport(LPT)andan8-waychannelselectorattachedtoa8-wayconnectorwillchannelselectorwereconnectedwithanumberoftestproducts.TheworkingprincipleasshowninFigure1.Thecourseoftesting,computerthroughtheparallelport8-waycontrolchannelselection,wereopendifferentchannels,eachchannelfordatatransmissionbychoosingtomeasuringinstruments,measuringinstrumentsthroughtheRS232porttothecomputerdatasenttosave,Acompletecycleofallchannelsofdatacollection,andthishasalsotestedanumberofproductfeatures.Figure1 systemblockdiagramofworkwordThroughoutthecourseoftesting,allthecontroloperationshavecompletedthesoftwareautomatically,withouthumanintervention.2 hardwaredesignThesystemismainlytousethecomputeronboardRS232communicationportsanddigitalmeasuringinstrumentofcommunicationportconnectingcommunications,re-useLPTparallelportona8-waychannelselectorforaccesscontrol.8-waychannelofchoiceforan8-electedoneofanalogswitchesandrelatedcircuit,thecontrolsignalsfromthecomputer'sparallelporttoprovideandmeetshownintable1.Table1TherelationbetweenchannelselectionandportoutputCommunicationsportoutputBinarycodeChannelselectionselectchannel00001100122010330114410055101661107711188-waychannelselectorindustrycanusetheSCM,subjecttoadditionalcontrols,selectRS232serialportasdatatransmission,becausetheRS232portisthecomputerandmeasuringinstrumentsonthestandardconfiguration,communicatewitheachotherwithoutadditionalhardware,Easytouse.Inaddition,aserialcommunication-onlyabit,withonlyastandarddata-voltagepotential,hencemoredifficultindataerrors.Inaparallelporttotransferdata8-bit,datatransmissionspeed,butthedatavulnerabletointerference.Transmissiondistanceinashorteramountofdatatransmissionlargercircumstances,maybeparallelport(suchasGPIB,LPT,etc.)tocommunicate.Inaddition,sinceLPTparallelportmaysignaltransmission,channelselectionissuitableforthecontrolport.Systeminthecourseofwork,goodaccesscontrolmodulesanddataacquisitionmodulesynchronizationisparticularlyimportantbecausedifferentchannelsofdatawordstorageneedsofthecorrespondingdatabufferpool,whichiscontrolledbysoftware.3 softwaredesignThewholesystemsoftwaredesignisthemostimportantpart.Softwaresystemfromthebottomofthecommunicationprotocolcanbedividedintofunctionalthree-tiermoduleanduserinterface.Softwaredesignintheuseofmulti-threadedWindowstechnology,thetechnologyfordatacollectionprocedurescaneffectivelyacceleratethereactiontimeandincreasetheefficiencyofimplementation.Theproceduresusedinaseparatethreadfordatacollection,sotheguaranteedmaximumenergycollectionofreal-time;usinganotherthreadatthesametimedataprocessing,suchprocedurestoavoidasingle-threadedthesametimeonlytheimplementationofafunctionaldeficiencies.Especiallywhentheamountofdatacollection,dataprocessingtask,usingmulti-threadedtechnologywillgreatlyimprovetheefficiencyofthesystemasawhole.3.1 DataAcquisitionModuleDataacquisitionmodulestoeightchannelsofdatainacycleofalltheacquisitiontothecomputer,andsavethechannel,andthecorrespondingdatainthebuffer.ItsproceduresdiagramshowninFigure2.wordFig2 FlowdiagramofdataacquisitionAtthebeginningofprocedures,withthechoiceofcontrolandstoredatabufferatthesametimetoswitchtothesamechannel,8-waydatacollectioncycleandcommandjudgement,intheendnotreceivedorders,hasrecyclingcollectiontodo.Multi-channeldataacquisitionprocessthedatavulnerabletointerference,especiallyinthefast-channelswitching,thedatavulnerabletofluctuations,asshowninFigure3.Atthistimeifthedatacollection,willbecollectingthewrongdata,theneedtoaddsomesoftwarealgorithmstopreventthisfromhappening.Ifwedeveloptheautomateddatatrackingalgorithmtoautomaticallytrackeachchanneldatatodeterminewhetherthechannelinastablestate,andonlythestabilityofdatawordacquisition,thevolatilityofotherdata.Inaddition,thesoftwarecanalsoaddsomefilteringalgorithm(suchaslimitingfilter,etc.)tofilteroutman-madeinterferenceorotherfactorscausedbythemutationdata.Limitingfilterfor(1)Figure3 channelswitching,thedatavolatilityWhenthenewcollecteddataandthedatabeforeadifferencetotheabsolutevalueofmorethanonesetofvaluesthatthedataisinvalid,andthepreviousdatafromthecurrentdata.3.2 DataAnalysisModuleInthedataanalysismodulecanbeaddedifthealgorithmanalysis,graphicsdisplayandprintoutput,andotherusefulfeatures,suchasgyroscopesandstabilityinthestandarddeviationalgorithmcanfunctioninthecourseoftestingreal-timecalculationofzerostability,andthroughchartshows.Zerostabilitycalculationformulaasfollows:(2)Accordingtofirst-(2)toprepareanalgorithmfunction,andthencallintheanalysismodule.AnalysismodulediagramoftheprocedureshowninFigure4.wordFigure4 dataanalysisprocessflowchartBecausethesystemusesmulti-threadedtechnology,inthecycleofoperationandwillnotaffecttheacquisitionmodule'soperation.Themodulealsoinitsalgorithminthefunctionofanyexpansion,formingaalgorithmtoadapttodifferentproceduresfordataanalysis.Inaddition,softwaredesign,afriendlyuserinterfaceisnecessaryintheprocessofthefunctionsfromthepackage,throughaunifiedinterfacetousers,toreduceoperatingdifficultiesandenhanceefficiency.4 systemtestresultsFigure5to8intheanalysisofdataacquisitionsystems,atthesametimetwothree-axisgyroandasingleaxisgyroscopetotalofsevenroadtestdataofthewordsituation.Itsprecisedatacollection,dataanalysiscanbeconductedatthesametime,andthroughreal-timecharts,user-friendly,easytooperate.Figure5 8DataCollectionandAnalysisSystem5 ConclusionMulti-channeldataacquisitionandanalysissystemforthehardwarerequirementssimple,easytosetup,canbeappliedtovarioustestsoccasions,itcanalsotestmultipleproducts,therebyreducingthecostandenhanceefficiency.Asaresultofamulti-threadedtechnology,thespeedofdataacquisitionsystemsandhardwareonly(instrument)andtheresponsespeedofthespeedofCommunication.Withthecollectionandanalysissoftwarealgorithmhasnothingtodo.PADprogrammingtoolscanbeusedtodevelopadatacollection,dataanalysis,graphicsdisplayandprintoutput,andotherpowerfulfeaturesandfriendlyuserinterfaceofoursoftware.Softwaremodulardesignandeasytocarryoutexpansion,accordingtodifferentalgorithmfordataanalysisattherequestofupgrades,andhardwarecanremainthesame.Thesystemgivefullplaytotheuseofcomputersandmeasuringinstrumentsofmutualcommunication,automationandtestadvantage.word多路數(shù)據(jù)采集與分析系統(tǒng)的設(shè)計及應(yīng)用摘要:介紹了用一臺PC機和一臺測量儀表組成的 8路數(shù)據(jù)采集與分析系統(tǒng)。該系統(tǒng)可并行測多個產(chǎn)品,從而降低測試成本,提高工作效率。給出了系統(tǒng)硬件結(jié)構(gòu)和軟件流程圖,并介紹了該系統(tǒng)在陀螺測試中應(yīng)用。關(guān)鍵詞:通信端口;數(shù)據(jù)采集;陀螺;測試隨著計算機技術(shù)的發(fā)展和測量儀表的數(shù)字化,通常利用計算機和測量儀表相互通信進行數(shù)據(jù)的實時采集,并利用計算機強大的運算能力進行數(shù)據(jù)的分析處理。特別在數(shù)據(jù)量大、測量時間長的場合,如陀螺零位穩(wěn)定性測試,利用計算機對測量儀表進行自動控制、自動數(shù)據(jù)采集分析顯得尤為重要,可節(jié)省大量人力和物力,提高工作效率,降低成本,常規(guī)的測試法通常一臺測量儀表在同一時間只能測試一個產(chǎn)品,即一臺計算機和一臺測量儀表組成的測試系統(tǒng)只能進行串行測試。若要同時測試多個產(chǎn)品,就需多個系統(tǒng),在測試產(chǎn)品量較大時,工作效率低,如組成多套測試系統(tǒng),增加了成本。先介紹一個用一臺PC機和一臺測量儀表組成的8路數(shù)據(jù)采集與分析系統(tǒng),可同時進行多套產(chǎn)品的測試,在不增加成本的基礎(chǔ)上,充分發(fā)揮了計算機自動測試的優(yōu)勢,提高了工作效率。1系統(tǒng)原理該系統(tǒng)有硬件系統(tǒng)和軟件系統(tǒng)組成。一臺PC機通過RS232端口和一臺測量儀表相連接,PC機并行端口(LPT)和一個8路通道選擇器相連,一個8路連接頭將通道選擇器分別與多個測試產(chǎn)品連接。系統(tǒng)的工作原理如圖 1所示。測試過程中,計算機通過并行端口控制 8路通道選擇器,分別打開不同的通道,各通道數(shù)據(jù)通過選擇器傳送到測量儀表中,測量儀表再通過RS232端口把數(shù)據(jù)發(fā)送到計算機中保存,在一個周期內(nèi)完成所有通道的數(shù)據(jù)采集,這樣就實現(xiàn)了同時測試多個產(chǎn)品的功能。圖1系統(tǒng)工作原理框圖在整個測試過程中,所有的控制操作都有軟件自動完成,不需人為干預(yù)。2硬件設(shè)計該系統(tǒng)主要是用計算機自帶的 RS232通信端口和數(shù)字化測量儀表的通信端口連接通信,再利用LPT并行端口對一個8路通道選擇器進行通道控制。8路通道選擇器利用一個 8選1的模擬開關(guān)和相關(guān)電路組成,它的控制信號由計算機的并行端口提供,并滿足表 1所示。表1通道選擇器和通信端口輸出的對應(yīng)關(guān)系通信端口輸出二進制碼通道選擇器選擇通道0000110012201033011441005510166110771118word8路通道選擇器業(yè)可使用單片機, 但需額外的控制,選擇RS232串口作為數(shù)據(jù)傳輸端口,是因為 RS232端口是計算機和測量儀表上的標準配置,相互通信不需額外的硬件,使用方便。另外,串行通信一次只傳 1個位,處理的數(shù)據(jù)電壓只有一個標準電位,因此較不易發(fā)生數(shù)據(jù)錯誤。并行端口可在一次的數(shù)據(jù)傳輸中傳輸8個位,數(shù)據(jù)傳輸速度快,但易發(fā)生數(shù)據(jù)干擾。在傳輸距離較短、傳輸?shù)臄?shù)據(jù)量較大的情況下,可采用并行端口(如 GPIB、LPT等)進行通信。另外,由于LPT端口可并行傳輸信號,因此適合用作通道選擇器的控制端口。系統(tǒng)工作過程中,通道控制好模塊和數(shù)據(jù)采集模塊的同步顯得特別重要, 因為不同通道的數(shù)據(jù)需要存儲在對應(yīng)的數(shù)據(jù)緩沖池中,這由軟件進行控制。3 軟件設(shè)計軟件設(shè)計是整個系統(tǒng)中最重要的部分。軟件系統(tǒng)從下至上可分為通信協(xié)議層、功能模塊和用戶界面三層。在軟件設(shè)計中采用Windows多線程技術(shù),此技術(shù)進行數(shù)據(jù)采集可有效加快程序的反應(yīng)速度,增加執(zhí)行的效率。該程序中采用一個單獨的線程進行數(shù)據(jù)采集,如此能量最大限度的保證采集的實時性;采用另一個線程同時進行數(shù)據(jù)處理,這樣避免了單線程程序同一時間只能執(zhí)行一個功能的缺點。尤其當采集的數(shù)據(jù)量大、數(shù)據(jù)處理任務(wù)重時,采用多線程技術(shù)將極大地提高整個系統(tǒng)的工作效率。3.1數(shù)據(jù)采集模塊數(shù)據(jù)采集模塊把8個通道的數(shù)據(jù)在一個周期內(nèi)全部采集到計算機中, 并保存在和通道號相應(yīng)的數(shù)據(jù)緩沖器中。其程序框圖如圖 2所示。word圖2數(shù)據(jù)采集程序流程圖程序開始時,控制同代選擇器和存儲數(shù)據(jù)的緩沖器同時切換到相同的通道號,循環(huán)采集8路數(shù)據(jù)和進行指令判斷,在沒有接受到結(jié)束指令時,一直做循環(huán)采集。多通道數(shù)據(jù)采集過程易發(fā)生數(shù)據(jù)的相互干擾,特別是在通道的快速切換時,數(shù)據(jù)易發(fā)生波動,如圖3所示。這時若進行數(shù)據(jù)采集,將采集到錯誤的數(shù)據(jù),故需在軟件中加入一些算法來避免這種情況發(fā)生。如我們開發(fā)的數(shù)據(jù)自動跟蹤算法能自動跟蹤每個通道的數(shù)據(jù),判斷該通道是否處于穩(wěn)定狀態(tài),且只采集穩(wěn)定狀態(tài)的數(shù)據(jù),忽略其他的波動數(shù)據(jù)。另外,還可在軟件中加入一些濾波算法(如限幅濾波法等)過濾掉人為或其他干擾因素所造成的突變數(shù)據(jù)。限幅濾波算法為(1)圖3通道快速切換時出現(xiàn)的數(shù)據(jù)波動當新采集到的數(shù)據(jù)和前一個數(shù)據(jù)的差的絕對值超過一個給定的值時 ,認為該數(shù)據(jù)無效,而取前一個數(shù)據(jù)為當前數(shù)據(jù)。數(shù)據(jù)分析模塊在數(shù)據(jù)分析模塊中可以加如算法分析、圖表顯示和打印輸出等有用的功能,如陀螺零位穩(wěn)定性標準差算法功能就可在測試過程中實時計算零位穩(wěn)定性,并通過圖表顯示。零位穩(wěn)定性計算式為:(2)先根據(jù)式(2)編寫出一個算法函數(shù),然后在分析模塊中調(diào)用。分析模塊的程序框圖如圖4所示。word圖4數(shù)據(jù)分析程序流程圖由于系統(tǒng)采用了多線程技術(shù),在分析循環(huán)運行時并不會影響采集模塊的運行。在該模塊中還可對其算法功能進行任意的擴充,形成一個算法程序庫以適應(yīng)不同的數(shù)據(jù)分析。另外,在軟件設(shè)計中,一個友好的用戶界面是必須的,把從程序中的功能封裝起來,通過一個統(tǒng)一的界面提供給用戶,有利于降低操作難度,提高工作效率。4 系統(tǒng)測試結(jié)果圖5為8路數(shù)據(jù)采集于分析系統(tǒng),同時進行2個三軸陀螺和1個單軸陀螺共7路數(shù)據(jù)的測試情況。其采集的數(shù)據(jù)精確,能同時進行數(shù)據(jù)分析,并通過圖表實時顯示,界面友好、操作方便。圖58路數(shù)據(jù)采集與分析系統(tǒng)5 結(jié)束語多路數(shù)據(jù)采集與分析系統(tǒng)對硬件的要求簡單, 容易組建,可應(yīng)用在各種測試場合,它可同時測試多個產(chǎn)品,從而降低測試成本,提高工作效率。由于采用了多線程技術(shù),該系統(tǒng)的數(shù)據(jù)采集速度只與硬件 (測量儀表)的響應(yīng)速度和不斷口通信速度有關(guān)。而與軟件采集和分析算法無關(guān)。利用PAD編程工具可開發(fā)出具有數(shù)據(jù)采集、 數(shù)據(jù)分析、圖表顯示及打印輸出等強大功能和友好用戶界面的配套軟件。軟件按模塊化設(shè)計,易進行功能擴充,可根據(jù)不同數(shù)據(jù)分析算法的要求進行升級, 而硬件可保持不變。該系統(tǒng)充分發(fā)揮了利用計算機和測量儀表相互通信,進行自動化控

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論