【正文】
owerful function of signal generator. The design of the virtual function signal generator reference signal generator SG 1645 power functions, front panel shown in Figure 1. Figure 1 virtual function signal generator front panel The function generator39。 measurement speed。 system set up time is short。s front panel function of the following ponents: instrument control button, the output frequency control window (including the frequency of display units), frequency fold into control, waveform selection, frequency tuning button, dc bias, square wave accounts for Air ratio adjustment, the output waveform amplitude control buttons. Frequency tuning range: ~ 1 Hz。s front panel shown in Figure 3, waveform generation module block diagram shown in Figure 3 Change of unit of frequency control module 5 When the output frequency dynamic range is large, with a single spin button control, due to a small rotation angle, you will have a greater change in the frequency, to the frequency of accurate Shezhi brought greater Kunnan, and frequency by using a knob Times by bining the output frequency can greatly improve the control accuracy. In order to improve control accuracy of the output frequency, which in this design, by using the unit of frequency change control module, the output control accuracy can be achieved . The module39。虛擬儀器是指 :利用現(xiàn)有的 PC機(jī),加上特殊設(shè)計的儀器硬件和專用軟件 ,形成既有普通儀器的基本功能 ,又有一般儀器所沒有的特殊功能的新型儀器。由用戶定義儀器功能 。 Labview 是一種圖形化的編程語言 ,主要用來開發(fā)數(shù)據(jù)采集,儀器控制及數(shù)據(jù)處理分析等軟件 ,功能強(qiáng)大。 8 2 虛擬函數(shù)信號發(fā)生器的結(jié)構(gòu)與組成 虛擬函數(shù)信號發(fā)生器的前面板 本虛擬函數(shù)信號發(fā)生器主要由一塊 PCI 總線的多功能數(shù)據(jù)采集卡和相應(yīng)的軟件組成。頻率微調(diào)范圍: ~ 1 Hz;直流偏置: 10~ 10V;方波占空比: 0~ 100%;輸出波形幅度: 0~ 10V。它支持單極和雙極性模擬信號輸入,信號輸入范圍分別為 5~ +5V和 0~ 10V。虛擬函數(shù)信號發(fā)生器主要由軟件完成輸出波形信號的產(chǎn)生和輸出信號頻率的顯示。波形產(chǎn)生模塊又調(diào)用 FGEN模塊。正弦波的產(chǎn)生原理是通過調(diào)用 sin(x)函數(shù)來實(shí)現(xiàn)。利用軟件產(chǎn)生波形的一個最大的優(yōu)點(diǎn)是使儀器的成本大大降低,而且使儀器小型化,智能化。該模 塊的前面板如圖 5所示,該模塊的程序框圖如圖 4所示。 。其良好的相通性、開放性、專用性,使測試系統(tǒng)的開發(fā)周期短、成本低、質(zhì)量高。 頻率單位變化控制模塊 當(dāng)輸出頻率動態(tài)范圍較大時,用單個旋轉(zhuǎn)按鈕控制時,由于旋轉(zhuǎn)一個很小的角度就會產(chǎn)生較大的頻率變動,給頻率的準(zhǔn)確設(shè)置帶來了較大困難,通過使用一個旋鈕和頻率倍乘相結(jié)合,可大大提高頻率的輸出控制精度。方波、鋸齒波、三角波的產(chǎn)生原理與正弦波產(chǎn)生原理相近 ,都是通過數(shù)學(xué)運(yùn)算來實(shí)現(xiàn)代表波形的數(shù)字序列。 數(shù)字波形產(chǎn)生模塊 波形產(chǎn)生模塊是虛擬函數(shù)信號發(fā)生器軟件的核心。該過程主要運(yùn)用了 Labview 中的數(shù)據(jù)采集子模塊中的 AO START 功能模塊。硬件接口部分用于數(shù)據(jù)輸入或輸出時的通道設(shè)置。使用這些修飾性的元件的目的是為了增加儀器的美觀性,并盡量與真實(shí)儀器的使用界面相一致 虛擬函數(shù)信號發(fā)生器的硬件構(gòu)成 本虛擬函數(shù)信號發(fā)生器的輸入輸出的硬件部分為一數(shù)據(jù)采集卡和具有一定配置要求的 PC機(jī),數(shù)據(jù)的輸入輸出靠對數(shù)據(jù)采集卡輸