虚拟仪器技术在测控系统中的应用.docx

上传人:b****6 文档编号:6891543 上传时间:2023-01-12 格式:DOCX 页数:6 大小:20.76KB
下载 相关 举报
虚拟仪器技术在测控系统中的应用.docx_第1页
第1页 / 共6页
虚拟仪器技术在测控系统中的应用.docx_第2页
第2页 / 共6页
虚拟仪器技术在测控系统中的应用.docx_第3页
第3页 / 共6页
虚拟仪器技术在测控系统中的应用.docx_第4页
第4页 / 共6页
虚拟仪器技术在测控系统中的应用.docx_第5页
第5页 / 共6页
点击查看更多>>
下载资源
资源描述

虚拟仪器技术在测控系统中的应用.docx

《虚拟仪器技术在测控系统中的应用.docx》由会员分享,可在线阅读,更多相关《虚拟仪器技术在测控系统中的应用.docx(6页珍藏版)》请在冰豆网上搜索。

虚拟仪器技术在测控系统中的应用.docx

虚拟仪器技术在测控系统中的应用

虚拟仪器技术在测控系统中的应用

摘要:

本文描述了基于虚拟仪器思想在实际测控系统中的应用。

通过选用多功能数据采集卡和信号调理电路组成自动测试系统,软件开发以专业测控工具LabWindows/CVI为平台,实现了数据采集、分析和处理。

使整个测控系统既经济又便于操作,同时易于改进和功能扩展。

同时,与基于传统的开发平台的测控系统进行了比较。

Abstract:

thispaperdescribestheapplicationintheactualmeasurementandcontrolsystembasedonvirtualinstrument.Bychoosingamulti-functiondataacquisitioncardandsignalconditioningcircuitofautomatictestsystem,softwaredevelopmentforprofessionalmeasurementandcontroltoolLabWindows/CVIplatform,hasrealizedthedatacollection,analysisandprocessing.Thewholemeasurementandcontrolsystemiseasytooperate,economicalandeasytoimprovementandfunctionextensionatthesametime.Atthesametime,withdevelopmentplatformbasedonthetraditionalmeasurementandcontrolsystemarecompared.

关键词:

虚拟仪器;Labwindows/CVI;数据采集

Keywords:

virtualinstrument;Labwindows/CVI.Thedatacollection

  

  1、引言

1,theintroduction

  

  虚拟仪器是以一种全新的理念来设计和发展的仪器,它是20世纪90年代发展起来的一项新技术。

虚拟仪器技术就是利用高性能的模块化硬件,结合高效灵活的软件来完成各种自动测试、过程控制、仪器设计、数据分析和自动化的应用。

灵活高效的软件能帮助您创建完全自定义的用户界面,其基本思想是在仪器设计或测试系统中尽可能用软件代替硬件,即“软件就是仪器”,它是在通用计算机平台上,根据用户需求来定义和设计仪器的测试功能,其实质是充分利用计算机的最新技术来实现和扩展传统仪器的功能,这种测试仪器的硬件功能软件化,给测试仪器带来了深刻的变化,因此虚拟仪器代表了当前测试仪器发展的方向之一。

Virtualinstrumentisakindofbrand-newideatodesignanddevelopmentoftheinstrument,itisanewtechnologydevelopedinthe1990s.Virtualinstrumenttechnologyistheuseofhigh-performancemodularhardware,combinedwithhighlyefficientandflexiblesoftwaretocompleteallkindsofautomatictesting,processcontrol,instrumentdesignanddataanalysisandapplicationofautomation.Flexibleandefficientsoftwarecanhelpyoucreatefullycustomizableuserinterface,itsbasicideaisasmuchaspossibleininstrumentdesigningortestingsystemwithsoftwareinsteadofhardware,namely"softwareisinstrument",itisongeneralcomputerplatform,accordingtouserneedstodefineanddesigntheinstrumenttestfunction,itsessenceisthelatesttechnologytomakefulluseofthecomputerrealizationandextendthefunctionalityoftraditionalinstruments,thistestinstrumenthardwarecapabilitiesofsoftware,andbroughtprofoundchangestotestinginstruments,sovirtualinstrumentrepresentsoneofthedevelopingdirectionofthecurrenttestinginstruments.

  

  2、虚拟仪器的特点和构成

2,thecharacteristicsofvirtualinstrumentandcomposition

  

  2.1虚拟仪器的特点

2.1thecharacteristicsofvirtualinstrument

  与传统仪器相比,虚拟仪器具有高效、开放、易用灵活、功能强大、性价比高、可操作性好等明显优点。

Comparedwithtraditionalinstrument,virtualinstrumenthasefficient,open,flexibleandeasytouseandpowerful,cost-effective,goodoperabilityandotherobviousadvantages.

  

  2.2虚拟仪器的构成

2.2thecompositionofvirtualinstrument

  虚拟仪器的构建主要从硬件电路的设计、软件开发与设计两个方面考虑。

Theconstructionofvirtualinstrumentismainlyfromthehardwarecircuitdesign,softwaredevelopmentanddesignofthetwoaspectstoconsider.

  根据目前我们所完成的测试设备,硬件电路的设计一般是选择现有的各种不同功能的板卡以及信号调理板来搭建。

所选用板卡的功能包括:

高速数据采集和信号转换;信号输出与控制;数据的A/D转换。

将具有一种或多种功能的板卡结合信号调理板组建起来,就能构成任何一种虚拟仪器。

例如使用高速数据采集板卡和高速实时数据处理就能构成1台示波器、1台数字化仪或1台频谱分析仪;使用数字量信号输入/输出板卡和实时数据处理就能构成1台函数发生器、1台信号源或1台控制器。

Accordingtothepresentwehavecompletetestingequipment,thehardwarecircuitdesignofthegeneralistoselecttheexistingvariousfunctionsofthecardandsignalconditioningboardtobuild.Choosesthecardfeaturesinclude:

highspeeddataacquisitionandsignalconversion;Signaloutputandcontrol;TheA/Dconversionofdata.Combinewithfunctionsofoneormoreofthecardsignalconditioningboardtogether,canformanykindofvirtualinstrument.Forexample,usinghighspeeddataacquisitionboardandhigh-speedreal-timedataprocessingcanconstituteoneoscilloscopeand1digitizeror1spectrumanalyzer;Usingdigitalsignalinput/outputboardandreal-timedataprocessingcanconstituteonefunctiongeneratorcontroller,onesourceor1.

  

  3、虚拟仪器在实际测控系统中的应用

3,theapplicationofvirtualinstrumentintheactualmeasurementandcontrolsystem

  

  3.1虚拟仪器在航空机载电子测控系统中的应用

3.1virtualinstrumentapplicationinairborneelectronicmeasurementandcontrolsystem

  测控系统在航空机载成件中起着举足轻重的作用,提高和完善测控系统的精度和测试能力对于整个飞机性能分析具有重要的意义。

我们主要完成了基于虚拟仪器的各型继电器盒、各型开关盒测控系统的测试。

使用数字采集板及工控机并在LabWindows/CVI开发平台中实现了对整个测试的电压采集、对各型继电器盒的逻辑状态及延时时间进行输出存储和分析。

Measurementandcontrolsystemintheairbornepiecesplaysapivotalrole,enhanceandimprovetheprecisionofthemeasurementandcontrolsystemandtestingcapabilityfortheaircraftperformanceanalysishasimportantsignificance.Wemainlycompletedeachrelayboxbasedonvirtualinstrument,varioustypesofswitchboxcontrolsystemtest.UsingadigitalacquisitionboardsandindustrialcontrolinLabWindows/CVIdevelopmentplatformandimplementsavoltageacquisitionfortheentiretest,foreachrelayboxofthelogicofthestateandoutputdelaytimeforstorageandanalysis.

  3.1.1测试系统组成

3.1.1testsystem

  整个测控系统由美国NI公司的LabWindows/CVI8.0,研华的1块PCI_175148路数字量输入/输出板,2块PCI_175464路数字量输入板、2块PCLD_785B24通道继电器输出板、6块PCLD_78224通道光电隔离数字量输入板,1块PCL_818L16通道A/D转换板、若干信号调理板及工控机组成。

ThewholemeasurementandcontrolsystembytheNILabWindows/CVI8.0,1pieceofresearchChinaPCI_175148roaddigitalquantityinput/outputboard,2piecePCI_175464digitaltablet,2piecePCLD_785B24channelrelayoutputboard,6pieceofPCLD_78224photoelectricisolationdigitaltablet,1pieceofPCL_818L16channelA/Dconversionboard,severalsignalconditioningboardandindustrialcontrol.

  测控系统的数据采集和处理采用虚拟仪器测量平台。

测控部分主要作用是参与被测产品的控制、测试数据处理和量化,驱动测试数据显示;工控机通过数字量输出板,经继电器输出板变换为被测产品的模拟控制信号;从被测产品采集来的电气逻辑信号经光电隔离数字量输入板转换为数(版权声明:

本文转载自论文网在线(),版权归原作者所有。

)字量信号,通过数字量输入板输至工控机;另外,利用A/D转换板来显示电压;利用系统时钟来完成被测产品的时间继电器延时时间的测试。

Measurementandcontrolsystemofdataacquisitionandprocessingwithvirtualinstrumentmeasurementplatform.Measurementandcontrolpartofthemainroleistoparticipateinthecontroloftheproductstested,testdataprocessingandquantitative,thedrivetestdatadisplay;Industrialcomputerthroughdigitaloutputboard,therelayoutputboardtransformforproductstestedsimulationcontrolsignal;Measuredproductscollectedfromtheamountofelectricsignalbyphotoelectricisolateddigitallogicconversionatablet(netofpaperofcopyrightstatement:

thisarticlereprintedfromonline(),allpeeroriginator.)Wordquantitysignal,throughthedigitalquantitytabletlosttoindustrialcontrol;Inaddition,theuseofA/Dconversionboardtodisplaythevoltage;Timetofinishtheproductstestedthesystemclockisusedtorelaydelaytimetest.

  3.1.2基于虚拟仪器的航空机载电子系统测控平台

3.1.2theairborneelectronicsystembasedonvirtualinstrumentmeasurementandcontrolplatform

  该平台整体系统采用美国国家仪器公司的虚拟仪器专用开发平台LabWindows/CVI系统。

由于CVI在标准C语言(AnsiC)的基础上增加了仪器控制和工具函数库的虚拟仪器开发软件,它的集成化开发平台、交互式编程方法、丰富的面板功能和库函数使其自身功能更加强大,应用更加方便,界面完全能够虚拟真实实物进行设计,使得人机对话界面直观、友好。

TheplatformasawholesystemadoptsspecialvirtualinstrumentdevelopmentplatformofthenationalinstrumentsLabWindows/CVIsystems.SinceCVI(AnsiC)inthestandardClanguageonthebasisofincreasedinstrumentcontrolandtoolfunctionlibraryofvirtualinstrumentsoftwaredevelopment,integrateddevelopmentplatform,interactiveprogrammingmethod,therichpaletteandlibraryfunctionstomakeitsfunctionsmorepowerful,moreconvenientapplication,interfacecancompletelyvirtualrealphysicaldesign,makestheman-machinedialogueinterfaceintuitiveandfriendly.

  由于测试的产品种类多,归属性强,因此系统测控平台的用户界面采用下拉菜单式,所需测试的产品一目了然,选用方便。

Duetothetestofproductvariety,strongGuiShuXing,thereforesystemmeasurementandcontrolplatformuserinterfaceusingthedrop-downmenu,neededtotesttheproductataglance,useconvenient.

  

  3.2基于虚拟仪器的测控平台在测控系统中的应用所使用的几个关键技术

3.2measurementandcontrolplatformbasedonvirtualinstrumenttechnologyapplicationinthemeasurementandcontrolsystemusedbyafewkeytechnology

  3.2.1通过采用系统时钟的方法提高软件测时时间

3.2.1improvesoftwaretestbyusingthemethodofthesystemclocktime

  在测试过程中要获得延时继电器的时间,一种方法是采用定时器/计数器板专门进行计数,另一种方法是采用系统时钟进行计数。

由于所需测试的时间为秒级,要求误差为20%,采用后一种方法完全能达到,一是可以节约成本,二是选购的计算机可不必多配置一个插槽,节省了空间。

在程序中使用了以下函数来获取高精度时间,它的精度可以达到毫秒级。

Duringtestingtogetthetimedelayrelay,oneapproachistousethetimer/counterboarddedicatedtocount,anothermethodistousethesystemclocktocount.Duetotherequiredtesttimeforthesecondlevel,requesterrorwas20%,usingthelattermethodcanfullymeet,itiscansavethecost,thesecondistochoosecomputerdon'thavetoconfigureonemoreslot,savedaspace.Intheprogramusingthefollowingfunctiontoobtainahighprecisiontime,itsprecisioncanreachmillisecond.

  3.2.2在测控系统中运用了数据库管理技术

3.2.2usedatabasemanagementtechnologyinthemeasurementandcontrolsystem

  由于LabWindows/CVI开发平台能够方便使用NI公司开发的SQL工具包,使得大量的测试数据能够以数据库的形式存储、查询。

DuetoLabWindows/CVIdevelopmentplatformcanconvenientuseSQLkitdevelopedbyNIcompany,makesalotoftestingdatacanbestoredintheformofadatabase,query.

  在测控系统中,可以通过所设置的产品名称、件号、时间、测试结果、温湿度、试验者、质控者等字段来进行保存,完成了一套产品的履历记录,通过查询产品的件号、时间等就可以调出每个产品的测试记录,这样就解脱了人工管理的诸多不便,提高了工作效率。

Inmeasurementandcontrolsystem,canbesetbytheproductname,partnumber,time,temperatureandhumiditytestresults,andparticipants,qualitycontrolandotherfieldstosave,tocompleteasetofproductrecordrecord,byqueryingthepackagenumber,time,etcoftheproductiscanbringupthetestrecordsforeachproduct,thusfreetheinconvenienceofartificialmanagement,improvetheworkingefficiency.

  3.2.3调用ActiveX自动化编程技术并打印生成了Excel表格

3.2.3callActiveXautomationprogrammingtechnologyandprintgeneratedtheExcelspreadsheet

  ActiveX自动化是一种能将单个应用程序和其他应用程序结合在一起的方法。

通过LabWindows/CVI提供的ActiveX控件可以直接调用Excel程序,并使用这些控件提供的函数对从Excel表格进行操作,从数据库中读取测试数据,转换并填入单元格,最后自动生成产品正式履历表并进行打印。

ActiveXautomationisacombinationof

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

当前位置:首页 > 人文社科 > 视频讲堂

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

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