资源描述:
《信息采集卡论文》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、信息采集卡论文摘要随着计算机技术及相关产业的迅猛发展,在更多的科学研究领域及生产场合中数据采集技术的应用变得越来越广泛,并且对数据采集的耍求也越来越高。本文通过接口文件调用其它语言编写的程序如C++,再通过其实现对硬件端口的读写操作,最终实现在MATLAB环境中进行数据采集的开发。文中分析了数据采集系统的结构和特点,针对传统串口通信数据采集系统不足之处,研究了基于MATLAB的数据采集系统,根据系统应该达到的技术指标,从而确定系统的整体框架和各个部分芯片的选择。硬件设计部分主要包括:主控制器ATmeagl6>USB芯片、DA转换电路、运放电路、电源转换电路以及ATmeag
2、l6外围电路等。硬件设计中的各个芯片的选择都以技术指标为依据,每个部分之间的连接以芯片的工作模式和系统要实现的功能來决定。系统软件部分包括A/D转换程序、D/A转换程序的设计、软件滤波、、MATLAB与VC接口连接等。本文通过将MATLAB程序编译成MEX文件解决了MATLAB不能直接对硬件端口进行读写操作的局限性。最后以搭建一个二阶系统的闭环通路来测试数据采集卡在实际中的应用,从测试的结果中可得出此系统性能良好,能达到设计的预期效果。关键词:MATLAB,数据采集,USBIMATLAB-baseddesignofdataacquisitionboardsAbstract
3、Withcomputertechnologyandtherapiddevelopmentofrelatedindustries,inmorescientificresearchandproduct!onofoccasionsintheapplicationofdatacollectiontechniquesbecomemorewidespread,andthedatacollectionrequirementsareincreasinglyhigh.ThisfilecallsthroughtheinterfaceprogramswritteninotherIanguage
4、ssuchasC++,andthroughitsimplementationofthehardwareporttoreadandwriteoperations,andultimatelyintheMATLABenvironmentforthedevelopmentofdatacollection.Thispaperanalyzesthedataacquisitionsystemstructureandcharacteristicsofthetraditionalserialcommunicationdataacquisitionsystemdeficiencies,stu
5、diesbasedonMATLAB'sdataacquisitionsystem,thesystemshouldmeetthetechnicalindicators,whichdeterminethesystem'soverallframeworkandthevariouspartsofthechipchoice.Hardwaredesignsectionineludes:themaincontrollerATmeagl6,USBchips,DAconversioncircuit,amplifiercircuit,powerconversioncircui
6、tandATmeagl6externalcircuit.Hardwaredesign,selectionofthevariouschipstotechnicalindicatorsarebasedontheconnectionbetweeneachparttochipandsystemoperatingmodetoachievethefunctiontodecide・Partofthesystemsoftware,includingA/Dconverter,D/Aconverterdesign,softwarefilter,,MATLABandVCinterfaceand
7、soon.ThispaperwillbecompiledintoaMATLABprogramtosolveaMATLABMEXfilecannotbedirectlyreadandwriteportsonthehardwarelimitations.Finally,theclosed-loopsystemtobuildasecondaccesstotestdataacquisitioncardinpracticalapplication,theresultsfromthetestsystemperformancecanbedr