Multi-sensor information acquisition platform based on LabVIEW

Publisher:纯真年代Latest update time:2015-07-22 Source: dzscKeywords:LabVIEW Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
        Introduction 

        Vehicle positioning and navigation technology is an important technology in intelligent transportation system (ITS), and positioning accuracy, continuity and reliability of positioning data are three important factors in navigation system performance. The accuracy of vehicle positioning and navigation depends directly on the accuracy of each sensor, and the improvement of sensor accuracy is often affected by factors such as technology and price. The currently widely used integrated navigation system based on multi-sensor fusion can effectively improve the navigation positioning accuracy, enhance the reliability of the navigation system, and fully guarantee the continuity and availability of navigation data. The number of sensors in the system is increasing, and traditional instruments no longer meet the system requirements. The author of this paper uses the multi-sensor information acquisition platform designed by NI's virtual instrument programming software LabVIEW to provide a general platform for multi-sensor information acquisition in integrated navigation, overcoming the shortcomings of traditional instruments with single functions, poor flexibility, and high update and maintenance costs. In addition, data acquisition, preprocessing, information display, storage and playback are integrated together to form a data file in a unified format, which is convenient for interfaces with other data analysis software, such as Matlab. In this multi-sensor information acquisition platform, various sensor information can be displayed on the same interface, and GPS time information can be easily added to the information of other sensors, solving the problem of difficulty in realizing multi-sensor information synchronization in the past. 

        Software Development Platform LabVIEW and Structure 

        LabVIEW stands for Laboratory Virtual Instrument Engineering Workbench. It is a very popular software development platform for virtual instruments. It is an integrated environment based on graphical development, debugging and running programs launched by National Instruments. It is the only compiled graphical programming language in the world. 

        System Hardware Structure 
        The hardware structure of this platform is shown in Figure 1. Various sensors are connected to the computer through a serial interface to achieve communication with the computer. The computer uses the system's LabVIEW program to send control commands to various sensors. Multi-sensor information is sent to the computer through the serial port for LabVIEW program to identify, read, store and post-process data. Various sensor information communicates with the computer through their respective interfaces in parallel. Due to limited laboratory conditions, the multi-sensor system design work was completed by taking IMU and GPS as examples. 


        System Software Structure 
        The software structure diagram of the system is shown in Figure 2. As can be seen from Figure 2, the entire system completes the functions of GPS/IMU data acquisition, data preprocessing, information display on the same interface, data storage, and data playback. 

   
        Key technologies of the system and their functional implementation 

        Key technologies of the system 
        (1) Parallel mechanism of LabVIEW
        The LabVIEW software application uses a parallel program structure to realize the measurement and control of multi-sensor information. For example, in multi-task parallel processing, two loop structures constitute two parallel tasks. The execution order of each task body is independent of each other, and even the number of times the two tasks are executed can be different. 

        (2) Serial port communication subVI 
        The serial port communication subVI is for the computer standard serial port. LabVIEW provides a group (a total of 5) of serial port communication subVI controls to support programming, which are: ①Serial port initialization (Serial PortInit); ②Serial port read (Serial PortRead); ③Serial port write (Serial PortWrite); ④Serial port byte count (ByteSatSerialPort); ⑤Serial port interrupt (Serial PortBreak). ( 

        3) Data synchronization mechanism principle 
        In multi-sensor information fusion, in order to minimize the error, the time of the two sensor data should match. However, in actual transmission of basic positioning information to the vehicle, only limited time information is needed. As long as the data start time is determined for the sensor information, the time can be determined based on the amount of data transmitted and the communication baud rate. Take the combination of GPS information and inertial navigation system (INS) as an example. Due to the different sampling rates of INS and GPS, the INS sampling rate is generally 10 Hz, while the GPS sampling rate is 1 Hz. As shown in Figure 3, let t1 be the time when IMU/INS and GPS information start to be available. First, a series of IMU/INS information is stored in the buffer from t1. Due to the low sampling rate of GPS, the GPS information at this time may not be the information at t1 but within the previous second. Assuming that the GPS information is updated at t1+Δt, after receiving the t1+Δt time information of GPS, the information in the buffer is restored to the correct time and the update is completed. Take t1+Δt as the data start time of the two sensors. In this way, the IMU/INS information and GPS information are time-matched. The subsequent time information can be determined by the amount of data transmitted and the communication baud rate. 

 

        System Function Implementation 
        (1) Data Collection and Preprocessing

        After the sensor raw data is read correctly from the serial port continuously, the data is preprocessed. The raw data is converted into actual sensor measurement information through format conversion, mathematical calculation, etc., and the real-time measurement function of the IMU rotation angle is realized. The basic principle is to integrate the angular velocity over time to obtain the angle change value. Since the gyroscope has different degrees of zero drift at different temperatures, its error will continue to accumulate in the case of integration. Therefore, a subVI for real-time calculation of the average drift of each axis of the gyroscope when it is stationary is added to this module to compensate for the error of angular velocity integration, so as to obtain a more accurate angle change value. The following takes IMU as an example to illustrate the implementation process of converting raw data to actual measurement values. Each IMU information contains 18 bytes of information, and its definition is shown in Table 1. [page]

        Table 1 IMU 18-byte positioning information 


  Figure 4 is a block diagram for data preprocessing using formula nodes. Among them, x and y are the input raw data, and z is the output actual measurement value. After the program converts the 18-byte string data into a digital array, the formula can be directly entered into the formula node on the block diagram to complete the conversion from the original information to the actual measured value. 


        (2) The information display 

        software uses a friendly and intuitive interface to present the information from the sensor, and presents the data information from the GPS and IMU respectively. Part of its interface is shown in Figure 5 and Figure 6. 

        During the design process, we specially used the Tab control, which can display the IMU and GPS information on different pages of the same panel at the same time, so that we can easily view the information of the two sensors interactively. 

        Figure 5 IMU information display interface 

        Figure 6 GPS information display interface 

        (3) Data storage 
        In LabVIEW, data can be stored in three formats: text file, binary file and data log file. The data storage function consists of a write file subVI and a Case structure. When the storage control button on the front panel is clicked, the system will store the IMU or GPS data, and the storage can be terminated at any time. Since there is no actual time information in the IMU information, in order to achieve the synchronization of multi-sensor information and the post-processing needs of the storage file, the synchronized GPS time information is added to the IMU storage information. In order to facilitate the use of other programs to read the data for post-processing, this paper adopts 
the storage format of text files. 

        (3) Data playback 
        To play back the data, first identify the file according to its storage format, and then display the information on the interface. Since LabVIEW does not have many functions for reading files, and generally has strict requirements on file formats, we adopted a method that first reads all the strings in the file, and then uses the rich string operation functions in LabVIEW to separate, identify and process the read strings. The procedures for reading, processing, displaying, storing, and replaying GPS information are similar to those of IMU, except that they are slightly different in data format, which will not be described in this article. 

        Conclusion 

        A multi-sensor information acquisition platform was established using LabVIEW and existing laboratory equipment. This platform has good general performance and eliminates some tedious work in the operation process of multi-sensor information acquisition. The acquisition process no longer requires writing different software to adapt to different sensor requirements; multi-sensor information is displayed on the same interface, making the measurement information more intuitive; a unified format of data storage files is formed, which is conducive to the post-processing of multi-sensor storage information. This platform makes full use of the flexibility and multi-input and multi-output characteristics of virtual instruments, combines computers, multiple sensors, and LabVIEW software to form a virtual instrument system, realizes the measurement and control of multi-sensor information, and lays the foundation for further research on the use of virtual instruments to measure and control multi-sensor information and multi-sensor information fusion in the future. 
Keywords:LabVIEW Reference address:Multi-sensor information acquisition platform based on LabVIEW

Previous article:Temperature and humidity calibration system for environmental test equipment based on LabVIEW
Next article:Phase Demodulation Technology of Optical Fiber Sensor Based on Labview

Recommended ReadingLatest update time:2024-11-16 14:44

Several timers in labview
LABVIEW provides several timers (including DELAY), as shown in the figure below. First, look at the help description of the Tick Count node: Returns the value of the millisecond timer. The base reference time (0 milliseconds) is undefined, that is, the returned milliseconds cannot be directly converted int
[Test Measurement]
Several timers in labview
Development of CAN bus communication platform based on LabVIEW and J1939 protocol
  Overview:   Since the beginning of the 21st century, the application of commercial vehicle CAN bus network has been developed extremely rapidly. Nowadays, commercial vehicles that meet the national 3 to national 5 emission standards on the market all use CAN bus network without exception to carry out data communicat
[Test Measurement]
Development of CAN bus communication platform based on LabVIEW and J1939 protocol
LabVIEW Programming Style Guidelines II
The block diagram is the primary way that others understand how the VI works, so it is often helpful to follow some simple steps to make the block diagram more organized and easier to read.  The style of the VI's block diagram is as important as the style of the front panel. The user may not see the block diagram, bu
[Test Measurement]
LabVIEW Programming Style Guidelines II
LabVIEW interface design - Modify the decoration color
Many people would go to great lengths to create a beautiful and exquisite interface, as can be seen from my colleague Chen Shuai. I personally believe that the interface is designed for the user, so simplicity is fine, just like a girl with a clean appearance is generally more attractive than a woman with heavy makeup.
[Test Measurement]
Labview Program Debugging Technology
Program debugging technology Find grammatical errors If a VI program has a syntax error, the Run button on the panel toolbar will become a broken arrow, indicating that the program cannot be executed. At this time, this button is called the Error List. Click it, and LabVIEW will pop up the Error List window. Clic
[Test Measurement]
B/S Mode Software Design of CNC Machine Tool Network Measurement and Control System Based on LabVIEW
Design of data acquisition, display, storage and playback software for lower-level measurement and control machines The lower-level measurement and control server system software includes two parts: interface instrument driver software and application software. Among them, the interface instrument driver is a collec
[Test Measurement]
B/S Mode Software Design of CNC Machine Tool Network Measurement and Control System Based on LabVIEW
Labview programming skills---fixed-point conversion
A string of PCM data is received, as follows:  0000 1264 C97C 8937 77C8 3783 EE9B 0000  indicates that two bytes correspond to one point of data (after the high and low bits are swapped, such as: 1264 (as it is stored), the actual value is: 6412 (hexadecimal), and their corresponding decimal floating-point numbers
[Test Measurement]
Labview programming skills---fixed-point conversion
PCB test system design
Combine NI PXI and PCI hardware with NI TestStand and LabVIEW software to develop a standard test system for testing printed circuit boards and solar inverters. "Using development tools exclusively from National Instruments, we developed a complete solution that covers all test needs from printed circuit board
[Test Measurement]
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号