Welcome: Hunan Intelligent Applications Tecgnology CO.,ltd.-HNIAT.com
Language: Chinese ∷  English

Smart test

Design of Amplitude-Frequency Characteristic Measuring Instrument Based on LabVIEW8.6 Platform and DS1012C Oscilloscope

introduction
The frequency characteristic is an important characteristic of the circuit network. In the past, manual measurement was used to stimulate the circuit network by outputting sinusoidal signals at different frequencies, and then to measure the response of the circuit network. A test often took a long time to complete. Although it only takes a few minutes to realize the frequency characteristic measurement of the circuit network by using a dedicated sweeper, network analyzer, etc., due to the expensive equipment, ordinary teaching laboratories are rarely equipped. The method of using a microprocessor to control a direct digital synthesis (DDS) frequency sweep source can better realize the frequency characteristics test, but the design and manufacture of the frequency sweep signal source, amplitude and phase detection circuit are difficult, and the implemented devices often exist Simple, unstable performance and other shortcomings.
Direct digital synthesis (DDS) function generators and digital oscilloscopes with digital interfaces have been widely used in laboratories. The former can achieve high amplitude and frequency switching, while the latter integrates data acquisition, software programming and other functions, can provide users with multiple analysis functions, and can even save and process waveforms. Especially most digital oscilloscopes provide built-in waveform amplitude measurement and waveform delay measurement. The combination of these instruments and the virtual instrument design platform can build an automatic test system at low cost and conveniently. This article uses LabVIEW8.6 as the design platform, uses the laboratory computer, Shengpu F40 digital synthesis function signal source with digital control interface and Tektronix TDS1012C digital storage oscilloscope to realize the frequency characteristic test of the circuit network. The realization of the system combines the advantages of the spot frequency method and the frequency sweep method, using a computer to control the function signal source through the RS232 serial port to generate a signal with constant amplitude and continuous frequency change with time as the frequency sweep signal of the network under test, which acts on the network under test. The oscilloscope samples and processes the output signal and input signal of the tested network. The computer obtains the signal amplitude measured by the digital oscilloscope through the USB interface, and analyzes the amplitude-frequency characteristics of the circuit network through the friendly user interface of LabVIEW8.6 software. show out.
1, system configuration
Using the frequency sweep signal to dynamically measure the circuit network under test, the frequency response characteristics of the circuit network under test can be obtained. The ratio of the signal amplitude between the input terminal and the output terminal of the tested network is the gain of the circuit. The overall block diagram of the system is shown in Figure 1. The computer controls the Shengpu F40 digital synthesis signal source through the serial port to generate a frequency sweep signal and applies it to the circuit under test. The computer reads the RMS value collected by the digital oscilloscope through the USB interface, uses LabVIEW8.6 software for data processing and displays the amplitude-frequency characteristic curve.

Based on LabVIEW8.6 platform and DS1012C oscilloscope to realize the design of amplitude-frequency characteristic measuring instrument. TDS1000C-SC series digital storage oscilloscope comes standard with USB connection, 16 kinds of automatic measurement, limit test, data recording and context-sensitive help. It has a bandwidth of up to 100 MHz and The sampling rate of 1 GS/s fully meets the design requirements of this article. When using a digital oscilloscope, in order to avoid aliasing, place the sweep speed in a position where the sweep speed is faster. This article uses AUTO SET to adjust the sampling rate of the digital oscilloscope to match the output frequency of the current function generator. , Complete sampling.
2, software design
This article uses VISA interface to realize the communication between LabVIEW and digital digital oscilloscope. Its purpose is to control the DDS signal source to produce a given range of frequency sweep signal, use a digital oscilloscope to measure and calculate the effective value, and make a frequency characteristic curve after obtaining the calculation result. The main function process is shown in Figure 2.

Based on the LabVIEW8.6 platform and DS1012C oscilloscope to realize the design program of the amplitude-frequency characteristic measuring instrument, firstly initialize the user interface and let the user choose the communication interface connected with the instrument. Then enter the required sweep control quantity, such as start frequency (20 Hz), end frequency (not more than 40 MHz) and sweep amplitude, and select continuous or logarithmic sweep mode. The response frequency interval is automatically calculated according to the start and end frequencies entered by the user, and the calculated frequency points are stored in the frequency array, and the frequency array data obtained is shown in Figure 3.

Based on the LabVIEW8.6 platform and DS1012C oscilloscope to realize the design of the amplitude-frequency characteristic measuring instrument. After calculating each frequency point, first according to the serial port selected by the user to the function signal source. After calculating each frequency point, first according to the serial port selected by the user Send the amplitude control word and frequency control word to the function signal source to generate sweep signals of different frequencies. The procedure for sending the amplitude and frequency control word is shown in Figure 4.

Based on the LabVIEW8.6 platform and DS1012C oscilloscope to realize the design of the amplitude-frequency characteristic measuring instrument. In order to ensure the accuracy of the read value, the system selects several frequency points to perform the waveform correction operation. The method is to control the digital oscilloscope through the USB interface to perform the "AUTO SET" operation , When the sending frequency is 10 Hz~1 kHz, 1~100 kHz or 100 kHz~10 MHz, the digital oscilloscope will be corrected for the waveform. The correction procedure is shown in Figure 5.

Based on the LabVIEW8.6 platform and DS1012C oscilloscope to realize the design of the amplitude-frequency characteristic measuring instrument. Then read the effective value (RMS) measured by the digital oscilloscope channel 1 and channel 2 through the USB interface [10], calculate the gain and fill it into the gain array, unit It is dB, as shown in Figure 6. Use the "expressXY graph" function of the graphic display control on the express panel to realize the XY graph display (see Figure 7).
3, system test
Connect the computer, Shengpu F40 DDS signal source and TDS1000C-SC series digital storage oscilloscope, connect the function signal source output terminal to the input terminal of the circuit to be tested, channel I of the digital oscilloscope to the input terminal of the circuit to be tested, and channel II to the circuit to be tested The output terminal. In the user interface, select the serial port corresponding to the DDS signal source (such as COM1) and the USB port corresponding to the digital storage oscilloscope, enter the required start frequency, end frequency and amplitude, and select the sweep mode. After setting, click the start button to start measurement. Figure 8 shows the measured amplitude-frequency characteristics of a band-pass filter with a center frequency of about 16 kHz.
Based on LabVIEW8.6 platform and DS1012C oscilloscope to realize the design of amplitude-frequency characteristic measuring instrument. Based on LabVIEW8.6 platform and DS1012C oscilloscope to realize the design of amplitude-frequency characteristic measuring instrument, the center frequency of the measured band-pass filter is about 16 kHz. The range is from 1 to 60 kHz, and it takes about 2 minutes and 30 seconds to scan 60 frequency points. If you need to improve the measurement of the amplitude-frequency characteristic curve, you can increase the frequency sweep point.
4, conclusion

This article uses LabVIEW8.6 as the design platform, and uses the laboratory computer, Shengpu F40 digital synthesis function signal source with digital control interface and Tektronix TDS1012C digital storage oscilloscope to realize the amplitude-frequency characteristic test of the circuit network. The method used in this program tested the amplitude-frequency characteristics of Butterworth low-pass filters, band-pass filters, and tuned amplifiers. The experimental results prove the effectiveness and practicability of the scheme in application. On this basis, the phase-frequency characteristics can be further obtained. Compared with commercial equipment, although the response time of this system is slower and the user interface needs to be improved, its programming and control are simple. It only needs to use the existing equipment in the laboratory, which is a way to improve the resource utilization of university teaching laboratory equipment. A feasible solution.

Please read the Chinese version to view the figures.

CONTACT US

Contact: Manager Xu

Phone: 13907330718

Tel: 0731-22222718

Email: hniatcom@163.com

Add: Room 603, 6th Floor, Shifting Room, No. 2, Orbit Zhigu, No. 79 Liancheng Road, Shifeng District, Zhuzhou City, Hunan Province

Scan the qr codeClose
the qr code