Driver of Universal Data Acquisition Card Based on LabVIEW
This paper introduces a method of calling a dynamic link library (DLL) through the Call Library Function Node provided by LabVIEW, completing the driver of a universal data acquisition card and realizing the combination of LabVIEW and a universal data acquisition card. ?
Keywords: LabVIEW; driver; data acquisition
First, use the Port I/O icon in the Advanced sub-template in the Function template of LabVIEW to program directly, and read data directly from a specific address memory by manually setting the base address. If the sampling speed requirement is not high, it is a very convenient and intuitive method; second, use the CIN (Code Interface Node) icon in the Advanced sub-template in the Functions template of LabVIEW, which is suitable for directly calling codes written in text programming languages (such as VC). The method of using the CIN node to generate the subVI of the A/D driver can give full play to the high conversion speed of A/D and obtain a high sampling rate. However, the programming is more complicated and cannot be directly modified by LabVIEW; third, use the Call Library Function Node icon in the Advanced sub-template in the Functions template of LabVIEW to dynamically link the DLL library function of the data acquisition card. DLL is actually a function library. The functions in the DLL are called and connected at any time only when the application is running. Compared with static link libraries, DLL can share functions and resources in the library with other applications. Many data acquisition card manufacturers provide drivers in the form of DLL library functions. Users can use some DLL link library programming tools, such as VC and VB, to write applications to call it. Similarly, LabVIEW also provides this function, which is the icon Call Library Function Node, which is placed in the Advanced sub-template within the Function template. By setting this node, the DLL can be directly called. ?
The third method is used in this research system to realize online cutting force data acquisition. The ISA bus-based data acquisition card ACL-8111 is used, and the DLL is directly provided by the manufacturer. ?
The input signal range of this system is ±5V, the sampling frequency is 2000Hz, the A/D data conversion trigger mode uses on-board programmable timer trigger, the data transmission uses interrupt control, the interrupt level is set to 5, the number of channels is 3, and the three channels collect and transmit the X, Y, and Z cutting forces respectively.
The analog signal to be collected is amplified by the charge amplifier, and different gains are selected according to the pre-set; the output signal is A/D converted. After the conversion is completed, the 12-bit conversion result is automatically stored in the data register, and then the data is taken out through the interrupt control and sent to the computer memory for processing. When in use, insert the acquisition card directly into the computer's ISA slot and use its pre-set base address 220H.
Previous article:Long-term analysis of bridge operation status based on LabVIEW
Next article:MCU Control Program Design for Intelligent Instrument Power Supply
Recommended ReadingLatest update time:2024-11-16 17:33
- Popular Resources
- Popular amplifiers
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- Modern Product Design Guide
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- What do you think about mobile phones supporting UWB?
- EEWORLD University Hall----Live Replay: Microchip implements secure authentication through TrustFlex secure element and Microsoft Azure
- si4010 new construction project issues
- F28335 ADC single channel single sampling code + comments
- Create a simple project for C6713
- 【RVB2601 debugging record】+ 0.96 inch TFT transplantation
- What is the difference between DSP and microcontroller?
- How do I convert X^(a^2) to (X^a)^? ? How many powers does it represent?
- CH341/CH340 Linux Driver Usage Tutorial
- Is the 6-pin 2.54mm double-row pin 3 in a row or 6 in a row?