Labview is an innovative product of NI Corporation of the United States. It is also the most widely used, fastest growing and most powerful graphical software development integrated environment.
Data acquisition card is an important component of virtual instrument. Its performance index directly affects the main indexes of virtual oscilloscope, such as sampling rate and accuracy.
PCI bus is a bus with multiplexed address/data and command/byte selection signals. It uses the master-slave signal two-way handshake to control data transmission. PCI bus has the characteristics of plug-and-play and strong compatibility. It can provide 32/64-bit and 33/66MHz DMA (direct memory access) data transmission mode, so that it is not affected by the size of computer memory when working. The transmission rate can reach up to 133Mb/s. These characteristics make it widely used. It can be applied to various architectures and various working platforms. It is also easy to upgrade, leaving enough space for future development. The above excellent characteristics are the reasons why PCI interface bus is selected in this design.
1 Hardware design of data acquisition card
The overall design of this system mainly includes: acquisition module design, signal conditioning module design, PCI bus interface design, FIFO data cache design and other parts. The system block diagram is shown in Figure 1 below.
1.1 Design of signal conditioning module
The signal conditioning module realizes signal amplification, analog channel selection and differential conversion. This part of the circuit is crucial to the entire system. During the design process, attention should be paid to reducing signal distortion and system noise.
1.2 Design of acquisition module
Analog-to-digital conversion is the core of the acquisition board. The system requires a sampling speed of at least 250kHz, a sampling accuracy of 16 bits, and a sufficiently wide dynamic range. Considering various factors, the ADS 8412 chip was selected.
ADS8412 uses an external reference voltage to work, and the principle of the PCI bus interface is shown in Figure 2.
In this paper, 8 acquisition channels are set up, and the timing control 8/1 analog switch is used to select one of the signals in turn. The differential conversion circuit converts the single-ended signal into a differential signal and sends it to ADS8412. ADS8412 has its own conversion clock and does not need an external clock. Multi-channel data acquisition is based on time-sharing sampling, that is, 8 channels are sampled in turn, and only one A/D is used. [page]
1.3 PCI bus interface design
PCI 9054 is connected to the computer through the PCI bus. The PCI protocol and timing are completed by the PCI 9054 interface chip. Here, only the PCI9054 interface needs to be designed. There is no need to understand the complex bus protocol, which simplifies the design process. This is the advantage of using a dedicated chip to implement the bus interface. The
PCI interface circuit should complete the following functions: address decoding and command decoding; address generation; control signal generation.
There are generally two ways to implement the PCI bus controller: using programmable devices and dedicated interface chips. The advantage of using programmable logic devices such as EPLD and FPGA is its flexible programmability. Dedicated chips can realize the complete PCI master module and target module interface functions, and convert complex PCI bus interfaces into relatively simple interfaces. Users can focus on application design instead of debugging the PCI bus interface, which significantly shortens the development time. This design uses PLX's PCI 9054 to implement the bus controller. The
PCI interface schematic diagram is shown in Figure 3. After starting the sampling, PCI 9054 acts as the master device and uses its DMA channel for data transmission. When the dual-port SRAM is full of 1kB data, a local bus interrupt is generated by controlling the timing. After PCI 9054 obtains control of the local bus, it reads 1kB of data into the dedicated FIFO for DMA transmission according to the start bit of DMA. PCI 9054 applies to occupy the PCI bus, obtains control of the PCI bus, and writes the data into the PCI bus storage space, thereby realizing one-time sampling and transmission.
In Figure 3, the interrupt request is made by the control timing circuit to determine the FIFO full flag. During the response to the interrupt, the PCI bus transmits data to the host computer in DMA mode so that the application program can call the data for analysis and processing. 93S66 is the configuration memory used for PCI device card identification. Figure 4 is a flowchart of the PCI interface controller.
[page]
2 Implementation of the data acquisition process2.1 Design of dynamic link library
LabVIEW software itself provides port operation functions, which can read and write the ports of peripherals, while other real-time control of peripherals needs to be realized through DLL technology.
In this system, the data acquisition card is designed by applying hardware chips. To realize the communication between each hardware in the system and the computer, the corresponding dynamic link library must be designed. The design of the DLL library here mainly includes: device initialization; determining the device name; creating a device handle; obtaining channel information; waiting for client software information.
2.2 Data acquisition process
First, set the sampling parameters related to the data acquisition card; when sampling starts, the multi-way switch scans the sampling channel once, and each channel samples one point; then start A/D conversion, and the converted digital signal is stored in the data buffer. Repeat the above process until the required number of samples is collected, and all data is sequentially stored in the buffer. When necessary, read the data from the cache of the data acquisition card to the computer's memory for processing. The acquisition process is shown in Figure 5.
2.3 Dynamic link library call in LabviEW
In the programming state of LabVIEW, open the "Call dynamic link library function" in the Function Palette toolbox to convert the data acquisition card driver into an icon/connector. Then you can call the module in the block diagram program. By setting the corresponding parameters at its input end, when the program is running, the driver module starts the work of the data acquisition card and returns the collected data. Figure 6 is an example of a dynamic link library call.
In Figure 6, the I/O data type of the CLF node is determined by the external input. The input control "channel" for the number of acquisition channels and the input control "times" for the number of acquisition times are both 32-bit unsigned long integers. The output of the 0-5V voltage after acquisition is a double-precision floating-point discrete value, which is first sent to the buffer for storage and standby.
4 Conclusion
This paper adopts a data acquisition system designed by hardware chips. When the crystal oscillator frequency of the local bus is 20MHz, it can stably reach an acquisition rate of 160Mb/s; when the crystal oscillator frequency is 40MHz, it can stably reach an acquisition rate of 200Mb/s.
Combining virtual instrument technology with the acquisition, analysis and result display of various physical signals provides a good direction for the development of new instruments. Combining advanced instrument development software LabVIEW with ordinary data acquisition systems will make virtual instrument technology more widely used in various fields.
Previous article:Design of Material Buffering Performance Test System
Next article:Development of a Dual Dynamometer Road Load Simulator for Heavy Tracked Vehicles
Recommended ReadingLatest update time:2024-11-16 15:41
- Popular Resources
- Popular amplifiers
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Arduino Nano collects temperature and humidity data through LabVIEW and DHT11
- Modern Testing Technology and System Integration (Liu Junhua)
- Computer Control System Analysis, Design and Implementation Technology (Edited by Li Dongsheng, Zhu Wenxing, Gao Rui)
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- CRC16 algorithm code for UDMA
- MSP430 ADC conversion + mean filter
- The functions of handheld devices realize information management in various industries
- Installation of the digital multimeter + RL78G14 development environment based on the serial port
- Simple LM317 adjustable power supply
- AC servo motor based on STSPIN32F0
- EEWORLD University - Designing wide input DC/DC converters for smart lock applications
- VS1053 module
- What is the temperature rise of a wire? How do you know the temperature rise of a wire?
- 【RT-Thread Reading Notes】Summary