【正文】
第24卷第3期 計算機應用與軟件Vol 124,No .32007年3月 Computer App licati ons and Soft w are Mar .2007收稿日期:20041025。全國教育科學十五規(guī)劃項目(ECB030477。呂紅英,助教,主研領(lǐng)域:虛擬儀器技術(shù),遠程實驗技術(shù)。LabV I E W 環(huán)境下基于聲卡的虛擬示波器軟件設(shè)計呂紅英1,2 吳先球2 劉朝輝2 陳俊芳21(華南農(nóng)業(yè)大學理學院 廣東廣州5106422(華南師范大學物理與電信工程學院 廣東廣州510631摘 要 基于計算機聲卡的虛擬儀器成本低、通用性強,在對采樣頻率要求不高的情況下,可以用聲卡取代數(shù)據(jù)采集卡進行采樣和輸出。利用虛擬儀器開發(fā)工具軟件Lab V I E W 及其數(shù)字聲音記錄節(jié)點,研制出基于聲卡的虛擬雙蹤數(shù)字存儲示波器,其功能和界面都與真實示波器相同。重點闡述了數(shù)據(jù)采集、觸發(fā)控制、顯示控制幾個主模塊的設(shè)計方法。關(guān)鍵詞 虛擬儀器 聲卡 Lab V I E W 虛擬示波器SO FT W ARE D ES I GN O F V I RTUAL O SC I LLO SCO PE BASEDO N SO UND CARD UND ER LabV I E WL 252。Hongying 1,2 W u Xianqiu 2 L iu Zhaohui 2 Chen Junfang21(College of Sciences,South China Agricultural U niversity,Guangzhou Guangdong 510642,China 2(School of Physics and Teleco mm unication Engineering,South China N or m al U niversity,Guangzhou Guangdong 510631,China Abstract The vitrual instru ment based on PC s ound card has the virtues of l ow cost and powerful generality,and the s ound card can take the p lace of the p lug 2in data 2acquisiti on board on l ow 2frequency conditi on .I n this article,the virtual double 2traced st orage oscill oscope based on s ound card,whose functi on and interface were designed according t o the actual oscill oscope,was devel oped using virtual instru ment s oft w are Lab V I E W and its digital s ound record nodes .The designs for severalmain modules such as data acquisiti on,triggering contr ol and dis p lay con 2tr ol were chiefly expounded .Keywords V irtual instru ment S ound card Lab V I E W V irtual oscill oscope1 引 言隨著計算機技術(shù)和虛擬儀器技術(shù)的發(fā)展,虛擬儀器逐漸成為現(xiàn)代儀器的發(fā)展方向,其中大部分虛擬儀器都是基于各種數(shù)據(jù)采集卡,如N I 公司的Lab 2PC 21200數(shù)據(jù)采集卡[1],研華公司的PC L 21800型數(shù)據(jù)采集卡[2],I S A 型數(shù)據(jù)采集卡AC1820[3]。在對采樣頻率要求不高的情況下,可以利用計算機的聲卡進行數(shù)據(jù)的輸入和輸出[4,5]。聲卡是一個非常優(yōu)秀的音頻信號采集系統(tǒng),其數(shù)字信號處理器包括模數(shù)變換器ADC (Anal ogue D igital Converter 和數(shù)模變換器DAC (D igital Anal ogue Converter ,ADC 用于采集音頻信號,DAC 則用于重現(xiàn)這些數(shù)字聲音。聲卡已成為多媒體計算機的一個標準配置,因此基于聲卡的虛擬儀器具有成本低、兼容性好、通用性和靈活性強的優(yōu)點,可以不受硬件限制,安裝在多臺計算機上。本文利用Lab V I E W ,編程實現(xiàn)了基于