资源描述:
《基于labview和声卡的虚拟示波器设计》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、基于Labview和声卡的虚拟示波器设计TheDesignofVirtualOscilloscopeBasedonLabviewandSoundCard学生姓名学号专业班级指导教师年月河北工业大学摘要虚拟仪器技术的提出和发展标志着二十一世纪自动测试与电子测量仪器领域技术发展的一个重要方向。该技术是在通用的计算机平台上定义和设计仪器的测试功能,使用者在操作这台计算机时就像在使用一台自己设计的专用的传统电子仪器。操作人员可通过友好的图形化用户界面和图形化编程语言来控制仪器的启动、运行和结束,完成对被测信号的数据采集、信号分析、谱图显示、波形图显示、故障诊断、数据存储以及控制输出等功能。
2、在虚拟仪器系统中,硬件解决信号的输入和输出,软件可以方便地修改、改变仪器系统的功能,以适应不同使用者的需要。其中信号的输入部分一般使用数据采集卡实现。商用的数据采集卡具有较大的通用性,但其价格昂贵,在具体的应用场合,有些功能可能并不实用。普通声卡,具有16位量化精度,数据采集频率为44kHz,完全可以满足特定应用范围内数据采集的需要,个别性能指标还优于商用数据采集卡,而价格却为商用数据采集卡的十几分之一甚至几十分之一。论文利用普通声卡做采集卡,利用美国NI公司的虚拟仪器软件LabVIEW做开发平台,河北工业大学设计实现了一个虚拟示波器。该系统能够正确采集声卡设计频率范围内的信号,实
3、现了基本示波器的测量功能和频谱分析功能,可以用来测量音频范围的信号。关键词:虚拟仪器;声卡;labVIEW;虚拟示波器河北工业大学AbstractTheproposalanddevelopmentofvirtualinstrumenttechnologymarksthedirectionoftheautomatictestandelectronicmeasurementat21stcentury.Thistechnologydefinesingeneralcomputerplatformsanddesignsthetestfunctionofinstrument,whenusers
4、operatingthecomputerlikeusingatraditionalelectronicinstrument.Operatorscancontroltostart,operateandenditthroughgraphicaluserinterfaceandgraphicalprogramminglanguage,andthenaccomplishdataacquisition,signalanalysisandspectrumchartshows,waveformfigureshows,faultsdiagnosis,datastorageandoutputcont
5、rol,andotherfunctionsofthemeasuredsignal.Invirtualinstrumentsystem,hardwaresolvetheproblemofinputsignalandoutputsignal,thesoftwarecanbeeasilymodifiing,changingthefunctionofinstrumentsystem,inordertoadapttotheneedsofdifferentusers.Partoftheinputsignalisgenerallyrealizingbythedataacquisitioncard
6、.Commercialdataacquisitioncardismoregeneral,moreexpensivebutsomefunctionsmaybeunpractical.Ordinarysoundcard,with16quantitativeprecision,44kHzdata河北工业大学acquisitionfrequency,canmeettheneedofdatacollectioninspecificapplicationrange,andtheindividualperformanceindexisalsobetterthancommercialdataacq
7、uisitioncard,butthepricesofcommercialdataacquisitioncardismoreexpensive.ThispaperdesignesandrealizesavirtualoscillographwithcommonaudiocardandLabVIEWvirtualinstrumentsoftware.Thesystemcancorrectlyacquisitethesingalandrealizethefunctions