【正文】
he Windows95/98/NT machine (remended configuration in PENTIUM Ⅱ / 233 and above), which constitute a powerful digital oscilloscope can be stored. Data Acquisition Card PCI bus transfer rate of highdata throughput large future data acquisition board design mainstream. The design uses the PCI1200 data acquisition card is a better value for money products, support DMA mode and dualbuffer mode, ensuring the uninterrupted realtime signal acquisition and storage. It supports a unipolar and bipolar analog signal input, signal input in the range of 5 ~ +5 V and 0 ~ 10V. Provide 16 singleended / 8 differential analog input channels, 2 independent DA output channels, 24line TTL digital I / O, 3 16bit timer counters, such as multiple functions. These features allow us not only can use the card design virtual oscilloscope, but also can design a virtual function generator or virtual counter, to achieve a multipurpose card. Of course, limited to funding conditions, we chose the PCI1200 card sampling rate can only be reached 100kS / s, the actual Oscilloscopes, this much can not meet the signal bandwidth requirements. Currently on the market sampling rate up to 200MS / s of PCI data acquisition card has been a mature product, the technical realization of highbandwidth virtual oscilloscope problem does not exist. When the actual measurement input signal through the BNC connector from the input data acquisition card to enter the collection. Instrument Function The virtual digital oscilloscope design reference to HP39。 ? Timebased control of the main control acquisition card scanning rate, each channel scanning frequency (sampling number). Waveform Display Module Software provides three types of waveform display modes: ? AB A amp。 ? Log / Linear choice, provided the coordinates of two kinds of display mode。 domain analysis functions。 [關(guān)鍵詞 ] 虛擬儀器 。虛擬儀器是90年代提出的新概念。從一般的儀器設(shè)計(jì)模型看,一種儀器無(wú)非是由數(shù)據(jù)采集、分析處理、人機(jī)交互和顯示等幾部分功能模塊組成的整體。因此,可以說(shuō)虛擬儀器代表了未來(lái)測(cè)量?jī)x器設(shè)計(jì)發(fā)展的方向。 1 虛擬示波器的結(jié)構(gòu)與組成 本虛擬數(shù)字示波器主要由一塊 PCI 總線的多功能數(shù)據(jù)采集卡和相應(yīng)的軟件組成。它支持單極和雙極性模擬信號(hào)輸入,信號(hào)輸入范圍分別為- 5~+ 5V 和 0~ 10V。目前市場(chǎng)上采樣速率達(dá) 200MS/ s 的 PCI 數(shù)據(jù)采集卡已有成熟產(chǎn)品,技術(shù)上實(shí)現(xiàn)高帶寬的虛擬示波器不存在問(wèn)題。本虛擬數(shù)字示波器還提供網(wǎng)絡(luò)接口,允許通過(guò) TCP/ IP 協(xié)議實(shí)現(xiàn)網(wǎng)絡(luò)儀器共享或遠(yuǎn)程控制。編程者可以通過(guò)交互式手段,采用圖形化框圖設(shè)計(jì)的方法,完成虛擬儀器的邏輯和測(cè)量分析功能設(shè)計(jì)。總之, LabVIEW 作為圖形化編程語(yǔ)言環(huán)境,為虛擬儀器開(kāi)發(fā)提供了一種快捷、方便和功能強(qiáng)大的軟件工具。觸發(fā)控制包括觸發(fā)模式、觸發(fā)斜坡、觸發(fā)電平控制; A B A& B 模式:通過(guò)顯示通道選擇按鍵摚翑和摚聰,可以任意顯示某一通道或兩通道輸入信號(hào)的波形; 頻譜分析模塊 頻譜分析模塊采用快速 FFT 算法,完成頻域信號(hào)分析。Display Unit 選擇,提供了 8 種單位。 主要控制結(jié)構(gòu) 測(cè)量控制結(jié)構(gòu) 通過(guò)邏輯按鍵 “測(cè)量 ”控制是否進(jìn)行測(cè)量;通過(guò)邏輯按鍵 “通道 ”控制通道選擇。在實(shí)際應(yīng)用中,記憶顯示功能主要用于測(cè)量信號(hào)的抖動(dòng)情況或比較分析兩個(gè)以上的信號(hào)波形。 。 虛擬儀器設(shè)計(jì)已經(jīng)成為測(cè)試與儀器技術(shù)發(fā)展的一個(gè)重要方向。 正常顯示、記憶顯示控制結(jié)構(gòu) 由雙功能邏輯驅(qū)動(dòng)鍵 “正常 /記憶 ”控制,缺省為正常顯示。主面板提供了兩個(gè)文件名輸入框,前一個(gè)為信號(hào)波形數(shù)據(jù)文件名輸入框,后一個(gè)為采樣周期文件名輸入框,這兩個(gè)文件由寫盤功能和讀盤功能共用。Windows 選擇,提供了 9 種頻譜 分析窗口; A + B A- B 模式:當(dāng)兩通道都處于選通狀態(tài)時(shí),使用此模式來(lái)顯示兩通道信號(hào)代數(shù)相加、相減后的波形。時(shí)基控制主要控制采集卡掃描率、每一通道掃描次數(shù)(取樣數(shù))。系統(tǒng)軟件總體上包括數(shù)據(jù) 采集 、波形顯示、參數(shù)測(cè)量、頻譜分析及波形存儲(chǔ)和回放等五大模塊 . 數(shù)據(jù)采集模塊 數(shù)據(jù)采集模塊主要完成數(shù)據(jù)采集的控制,包括觸發(fā)控制、通道選擇控制、時(shí)基控制等。 LabVIEW 編程的另一個(gè)優(yōu)點(diǎn)是將軟件的界面設(shè)計(jì)與功能設(shè)計(jì)獨(dú)立開(kāi)來(lái),修改人機(jī)交互界面無(wú)需對(duì)整個(gè)程序進(jìn)行調(diào)試,這對(duì)設(shè)計(jì)像儀器 操作面板這樣復(fù)雜的人機(jī)界面而言是十分方便的。 除了由于經(jīng)費(fèi)原因使得所選數(shù)據(jù)采集卡采樣速率低于 HP54603B 外,本虛擬示波器在顯示、測(cè)量、分析、存儲(chǔ)和外部連接等方面的功能都不低于甚至高于 HP54603B 2 軟件的設(shè)計(jì)與實(shí)現(xiàn) 軟件開(kāi)發(fā)環(huán)境 虛擬數(shù)字示波器軟件設(shè)計(jì)采用了先進(jìn)的圖形化編程語(yǔ)言工具 LabVIEW for Windows98/ NT。 儀器功能 本虛擬數(shù)字示波器設(shè)計(jì)參考了 HP 公司的雙通道臺(tái)式數(shù)字存儲(chǔ)示波器 HP54603B 的功能,并在儀器分析和處理功能上有所擴(kuò)展。這些功能使得我們不僅可以用該卡設(shè)計(jì)虛擬示波器,也可以設(shè)計(jì)虛擬 函數(shù)發(fā)生器或虛擬計(jì)數(shù)器,做到一卡多用。 數(shù)據(jù)采集卡 PCI 總線傳輸速率高 數(shù)據(jù)吞吐量大 是今后數(shù)據(jù)采集板卡設(shè)計(jì)的主流。數(shù)字示波器是在科學(xué)研究和工程設(shè)計(jì)中廣泛應(yīng)用的一種通 用儀器。與傳統(tǒng)儀器相比,虛擬儀器除了在性能、易用性、用戶可定制性等方面具有更多優(yōu)點(diǎn)外,在工程應(yīng)用和社會(huì)經(jīng)濟(jì)效益方面也具有突出優(yōu)勢(shì)。所謂虛擬儀器,就是在通用的計(jì)算機(jī)平臺(tái)上定義和設(shè)計(jì)儀器的測(cè)試功能,使用者操作這臺(tái)計(jì)算機(jī),就象是在使用一臺(tái)專門設(shè)計(jì)的電子儀器。LabVIEW。 re to improve its performance。 through the logic key channel control channel selection. automatically adjust the scan rate of control structure By the logic of key group Automatic, manual to control the scan rate is automatically adjusted or manually adjust the scan rate. display, memory display control structure Logical drive from a dual function keys normal / memory control, the default for the normal show. In a normal state, can only show that A, B twochannel input signal waveform 2。 ? XY mode: When the two channels are in a gated state, use this mode to display Lissajous (Lissajous) graphics, phase or frequency measurement。 the use of LabVIEW in the Call Library Function can call the standard dynamic link library (. DLL). In short, LabVIEW as a graphical programming language environment for the development of virtual instrument provides a fast, convenient and powerful software tools. The main function modules Generally speaking, virtual oscilloscope software control by the pletion of signal acquisition, processing and display. System software in general, including data acquisition, waveform display, parameter measurement, spectrum analysis and waveform storage and playback, such as the five modules. Data Acquisition Module Data acquisition module to plete the major data acquisition control, including trigger control, channel selection control, timebase control. Of which: ? trigger control, including the trigger mode, trigger slope, trigger level control。s concept. Virtual instrument technology with the development of automatic test marks the twentyfirst century and electronic measuring instruments in the field of technological development an important direction. The socalled virtual instruments, that is, in generalpurpose puter platform defi