1 Introduction
Virtual instrument, abbreviated as VI, is a PC instrument with a virtual panel, which consists of hardware devices and interfaces, PC, device driver software and virtual instrument panel. Among them, hardware devices and interfaces can be various built-in function cards based on PC, such as DAQ, general purpose interface bus GPIB interface card, serial port and VXI bus instrument interface, etc., or other programmable external test equipment. Device driver software is a driver that directly controls various controllable hardware interfaces. Virtual instruments communicate directly with real instrument systems through low-level device driver software, and display various controls corresponding to real instrument operation elements on the computer screen in the form of virtual instrument panels. Virtual instrument panel applications are responsible for data analysis, image display, data storage, data printing and other operations on the collected data. The buttons on the panel correspond to various functions and are accompanied by dynamic help. This not only fully realizes single-key operation and OSD, but also makes it more convenient for users to operate virtual instrument surfaces than real instruments.
2 Design Principles
A museum or library of a certain size is generally composed of several collection rooms. This design adopts the principle of allocating time slices to each task in the time-sharing system of the computer to realize the detection and control of the temperature and humidity of multiple collection rooms with one computer and one data card. The analog multi-way switch in the data acquisition card is used to switch between various hardware data channels to achieve the purpose of sampling and controlling each channel in time slices. This method is suitable for the control of parameters that are not very sensitive to time changes, such as temperature and humidity. This can reduce the complexity of the monitoring system to a certain extent.
The structure of the collection room temperature and humidity monitoring system is shown in Figure 1. The controlled parameters such as temperature and humidity are detected by sensors and sent to the computer via the data acquisition card. The computer processes and displays the data according to a certain control algorithm. The processed output control signal is then sent to the actuator air conditioner and dehumidifier via the data acquisition card to achieve the purpose of controlling the room temperature and humidity of the collection.
3 Hardware Design
The hardware of the system mainly consists of PC, data acquisition card, signal conditioning circuit, temperature and humidity sensor and actuator air conditioner and dehumidifier.
3.1 Data acquisition card
The accuracy of data acquisition will directly affect the accuracy of the entire virtual instrument measurement and control system. Therefore, in the selection of data acquisition cards, the two basic indicators of sampling accuracy and sampling speed should be considered first. Taking into account the characteristics of the parameters to be determined in this system, as well as the reliability, accuracy and cost-effectiveness of the data acquisition card, the PCI bus/100Ksps/12-bit 32-channel AD/2-channel DA board/8-way input and output board AD7202 is selected.
3.2 Signal conditioning circuit
Signal conditioning circuits generally include circuits for small signal amplification, filtering, zero point correction, linearization, temperature compensation, error correction, and range switching. In this system, a preamplifier circuit is added to amplify the small signal input by the sensor and a low-pass filter is added to filter out high-frequency noise.
3.3 Sensors
Selection of temperature sensor components: The AD590L temperature sensor is selected, with a temperature measurement range of -55℃~125℃, and a measurement accuracy of ±0.5℃ in the range of -10℃~85℃. This sensor can meet the working requirements of the collection room temperature and humidity measurement and control system. Selection of humidity sensor: The integrated humidity sensor IH3605 produced by HONEYWELL is used, with a measurement humidity range of 0~100RH, an inherent accuracy of ±2 RH, and an operating temperature range of -40℃~85℃.
4 Software Design
The system is developed based on virtual instrument technology, with the graphical programming language LabView 8.2 as the development tool. The computer's own PCI bus is used, and sensors, data acquisition cards, and PCs are used as the basis to form a plug-in virtual system for the instrument hardware platform. The system uses sensors to measure the temperature and humidity of the collection room, and at the same time performs analog-to-digital conversion, result display, control algorithm processing, data query, and control signal output on the collected data. The main functional modules and structural block diagram of this system are shown in Figure 2. [page]
4.1 Parameter setting module
Since the system has a lot of hardware resources, the digital channels on the data acquisition card should be initialized before signal acquisition. There are two acquisition modes for AD cards: single buffer mode and multi-buffer mode. The AD card in this detection system uses a multi-buffer mode. The collection room temperature and humidity measurement and control system needs to set parameters such as the number of channels for collecting signals, sampling frequency, total number of buffers, and number of sampling points for each buffer. By comprehensively setting these parameters, the appropriate signal acquisition time and total number of sampling points can be obtained. The following relationship is satisfied between them:
Total number of points collected = frequency × collection time
Total number of points collected = number of points collected in each buffer × n buffers
4.2 Data Acquisition Module
The data acquisition module mainly includes signal acquisition and analog-to-digital conversion. Since the A/D data acquisition cards used can be directly applied to the unified interface ADCard driver in the .dll format in the LabView software platform, this avoids the use of other languages to develop drivers, and only requires the correct call of the relevant functions under ADCard. The data transmission principle used in data acquisition is: under the control of the driver, the data acquisition card first stores the collected external signals in the buffer on the acquisition card, and the driver then puts the data in the acquisition card buffer into the driver's buffer, and then transmits the data to the data memory of the upper application software through the dynamic link library interface function.
In the background program of LabView, the dynamic link library method provided by LabView is used to implement the input of data acquisition. The entire acquisition process is divided into several steps: calling the DllInitial function to initialize the acquisition function, calling the DllStartIntr function to start the A/D card to start data acquisition, calling the DllADResult function to read the data acquisition results, and calling the DllStopIntr function to stop data acquisition.
4.3 Data Processing Module
The temperature and humidity in the collection room are not only affected by changes in the outdoor environment, but also by the random storage and retrieval of cultural relics, books and documents. This makes it difficult to control the temperature and humidity and is difficult to express using a mathematical model.
This system uses LabView virtual instrument software to implement the fuzzy control method in the intelligent control principle. The basic idea is: when the collected data is within the threshold range of the set value, the system does not adjust. When the collected data deviates from the threshold range of the given value, the newly collected data is compared with the last collected data. If its change tends to the set value, the system still does not adjust. If its change deviates from the set value, the system adjusts. Due to the large time lag of the controlled parameters, this adjustment mechanism can not only avoid system oscillation caused by frequent actuator actions while ensuring control accuracy, but also extend the service life of the actuator.
To prevent unexpected situations such as actuator failure, the system is also designed with upper and lower limit alarm functions for temperature and humidity. Sound and light alarms can be realized through the front panel and block diagram program of the virtual instrument to remind staff to deal with unexpected situations in time.
4.4 Data Display Module
In the data display module, the collected data and alarm signals can be displayed in two ways: curves and values, so as to facilitate human-computer interaction. In addition, a data save function is set to save the collected data for later use. The display of graphics and data can be seen from the virtual instrument panel, as shown in Figure 3. The implementation of data save is reflected in the background block diagram program, and the function - file I/O - write to spreadsheet file node is selected to complete the data storage function.
4.5 Signal output module
After the collected data is processed by the control algorithm, a corresponding control signal will be generated. The system uses two methods for output. If the temperature and humidity of the library collection room are monitored, the corresponding control requirements are relatively low, and switch quantity can be used for control, so the output is a switch quantity signal. If the temperature and humidity of a museum with precious cultural relics are monitored, the corresponding control requirements are relatively high, so analog quantity is used for control. At this time, the output is an analog voltage signal, which achieves the purpose of real-time control by adjusting the speed of the air conditioner or dehumidifier.
Previous article:Optimizing Signal Processing Performance in Multicore Processor Environments with LabVIEW
Next article:Using virtual instruments to realize dynamic characteristics test and simulation of hydraulic devices
Recommended ReadingLatest update time:2024-11-16 23:48
- 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
- What waveforms can power amplifiers amplify?
- Download: Distributed Wi-Fi for Smart Homes
- 【ST NUCLEO-H743ZI Review】+ Unboxing and lighting
- Introduction to ST MEMS Sensor Machine Learning (MLC) Function
- Tips for Setting the Baud Rate of the MSP430 Serial Port
- A new type of microstrip array antenna
- EEWORLD University ---- ESP32 Video Tutorial
- How to purchase website core points?
- Can this zero-crossing detection realize zero-crossing detection in two directions? What is the working principle?
- FPGA Design Skills and Case Development Detailed Explanation (2nd Edition)