Automobile exhaust gas detection system based on virtual instrument technology

Publisher:WhisperingGlowLatest update time:2013-12-25 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Automobile exhaust gas detection system based on virtual instrument technology

  Abstract: In order to monitor and prevent environmental pollution caused by automobile exhaust emissions, this paper introduces an automobile exhaust detection system based on virtual instrument technology. First, the composition and working principle of the detection system are introduced, and a method for designing an automobile exhaust detection system is proposed, using the graphical programming language LabVIEW8.2 launched by the American NI company as the development environment and the VS5067-5 produced by the German Siemens company as the exhaust analyzer. In particular, the LabVIEW8.2 implementation of the industrial control computer and the VS5067-5 serial communication program is introduced in detail. The actual test results show that the method is convenient and practical, and has the value of promotion and application.

  0 Introduction

  In recent years, with the rapid development of my country's social economy and the continuous improvement of people's living standards, the number of cars has increased significantly. While cars bring convenience to people's daily lives, they also bring serious environmental problems. Harmful gases such as CO and HC compounds in automobile exhaust have become the main source of air pollution. Therefore, monitoring and preventing automobile exhaust pollution is an important task in controlling environmental pollution.

  To control the exhaust pollution of motor vehicles, the first thing is to do a good job of detection. In my country, since 1999, a series of corresponding laws and regulations have been formulated to strictly control the emission of automobile exhaust. In 2005, the new national standard GB 18285-2005 "Limits and measurement methods for exhaust pollutants from spark-ignition engines" was promulgated. In addition to the requirements for the measurement method of exhaust pollutants of automobiles under idle and high idle conditions, the standard also clearly stipulates the emission limits of exhaust pollutants for each type of automobile.

  The main detection parameters of automobile exhaust pollutants are: CO (carbon monoxide), HC (hydrocarbons), CO2 (carbon dioxide), O2 (oxygen), NO (nitrogen monoxide), etc.

  1 Composition of the detection system

  The hardware structure of the automobile exhaust detection system based on virtual instrument technology is shown in Figure 1.

Hardware Structure

  The detection system is mainly composed of exhaust gas analyzer, I/O interface card, infrared photoelectric switch, LED display screen and industrial control computer. The exhaust gas analyzer uses VS5067-5 automobile exhaust gas analyzer of Siemens of Germany. The core component of the instrument is infrared optical sensor of Siemens . Its working principle is to produce strong absorption in the spectrum band near the characteristic frequency according to the characteristic absorption band and characteristic frequency of different gases. According to the strength of gas infrared spectrum absorption, the composition and content of automobile exhaust gas are detected and analyzed. The instrument can detect the concentration of five gases, CO, HC, CO2, O2 and NO in automobile exhaust gas and automobile working parameters such as engine oil temperature and speed. The measurement data is displayed on the LCD screen on the instrument panel, and it is equipped with a standard RS232 serial interface to connect with the industrial control computer. The serial port can receive measurement commands and output test results.

  The I/O interface card expanded on the industrial computer is mainly used to receive the on/off status of the infrared photoelectric switch to determine whether the inspected vehicle is in place. The infrared photoelectric switch uses the Omron E3JK-5M model, and its infrared beam distance is 5m. The infrared transmitting photoelectric tube and the infrared receiving photoelectric tube are installed on both sides of the vehicle inspection line. When the infrared transmitting tube is not blocked, the receiving photoelectric tube is in a normally closed state. When the inspected vehicle drives to the inspection station and blocks the infrared transmitting photoelectric tube, the receiving photoelectric tube is in an open state. The open and closed states of the receiving photoelectric tube indicate whether the vehicle is in place.

  The LED display screen is used to display the test process information and test results. The driver and exhaust emission inspector can perform corresponding operations under the guidance of the information displayed on the LED display screen.

  The working process of the exhaust gas detection system is as follows: when the vehicle logs in for online detection, the industrial control computer sends a vehicle entry message to prompt the vehicle to enter the detection station. When the industrial control computer detects that the receiving photoelectric tube is in the off state, it means that the vehicle is in place and the exhaust gas detection can begin. The detection procedure will be carried out according to the measurement method specified in the national standard GB18285-2005. During the detection process, the exhaust emission inspector inserts the sampling probe into the exhaust pipe of the vehicle to be inspected according to the instructions on the LED display screen, and connects the speed measuring clamp to the relevant parts of the engine as required; the exhaust gas analyzer receives the command of the industrial control computer from the serial port to collect exhaust pollutants; the driver manipulates the car to enter the rated speed, high idle speed, idle speed and other states according to the instructions on the LED display screen, and cooperates with the exhaust gas analyzer to complete the exhaust emission measurement according to the detection procedure.

  2. Detection software design

  Software is the key to virtual instruments. When designing a virtual instrument system, after the hardware platform is determined, different functions can be realized by designing different software modules. The application software of the automobile exhaust detection system is developed using NI's graphical programming language LabVIEW8.2 and is modularly designed. The program flow chart for detecting exhaust emissions using the dual idle method is shown in Figure 2.

  The execution process of the dual idle exhaust gas detection program is as follows: first, input the basic information of the vehicle to be inspected on the main program interface, then prompt the vehicle to enter the inspection station through the LED display screen, and judge the vehicle's arrival by reading the state of the infrared receiving photoelectric tube. If the vehicle is in place, the exhaust emission test is carried out according to the dual idle measurement method specified in the national standard, and the test data is input through the serial port. Finally, the data is calculated, and the test results are displayed and stored. For intuitiveness, the collected raw data can be output in the form of a curve chart.

Flow chart of the procedure for testing exhaust emissions using the dual idle method

  In the design of the detection program, since the industrial computer and the exhaust gas analyzer transmit measurement commands and measurement data through the serial port, the serial communication program is one of the most critical modules in the detection software. In LabVIEW8.2, the VISA module can be used to write the serial communication program, which can get rid of the cumbersome low-level commands and easily realize the communication between the industrial computer and the instrument.

  The communication parameters of VS5067-5 automobile exhaust analyzer are: 9600 baud rate, 8 data bits, no parity check, 1 stop bit, and the communication commands include: computer control, CAL, measurement, read data, end measurement, manual operation, etc. The command format is a multi-byte ASCII code. For example, the "computer control" command is: 02H, *, S, R, E, M, 20H, K, O, 03H, that is, 10 bytes of ASCII code. Similarly, the instrument's response signal is also a multi-byte ASCII code. For example, the response signal corresponding to the "computer control" command is a 9-byte ASCII code, namely: 02H, *, S, R, E, M, 20H, 0, 03H. In other words, the serial data between the industrial control computer and the exhaust gas analyzer are all multi-byte ASCII code information. Since it is more convenient to express ASCII code in hexadecimal in program development, there is a problem of data type conversion in serial transmission and reception of data. In LabVIEW8.2, the conversion between ASCII code and hexadecimal data can be easily realized by using the two functions of "byte array to string conversion" and "string to byte array conversion". Taking sending the "computer control" command as an example, the serial communication program designed by LabVIEW8.2 is shown in Figure 3.


  The writing process of the serial communication program is as follows:

  1) Serial port initialization

  According to the communication protocol of VS5067-5 automobile exhaust analyzer, use the "VISA Configure Serial Port" function in the [Data Communication] → [Protocol] → [Serial Port] sub-selection panel of LabVIEW8.2 function selection panel to initialize the serial port to a baud rate of 9600bps, 8 data bits, 1 stop bit, no parity bit, and select the COM1 port of the industrial control computer.

  2) Send measurement command

  When the industrial computer wants to send a measurement command to the exhaust gas analyzer, it can use the "VISA write" function to send it. Since the exhaust gas analyzer's command is in multi-byte ASCII format, it is necessary to group the command into an array, and then use the "byte array to string conversion" function to convert the array into a string for sending. Figure 3 shows the sending of the "computer control" command. The hexadecimal representation of the "computer control" command is: 02H, 2AH, 53H, 52H, 45H, 4DH, 20H, 4BH, 30H, 03H.

Sending of "Computer Control" commands

  3) Receive response signal

  When the exhaust gas analyzer receives the command from the industrial computer, it will return a response signal accordingly. In program design, the "VISA read" function can be used to receive the instrument's response signal, and then the "string to byte array conversion" function can be used to convert the received ASCII data into hexadecimal data. For example, when the instrument receives the "computer control" command, the returned response signal is expressed in hexadecimal as: 02H, 2AH, 53H, 52H, 45H, 4DH, 20H, 30H, 03H. If the industrial computer sends a "read data" command to the instrument, the response signal returned by the instrument will include HC, CO, CO2, O2, NO, as well as speed, oil temperature, λ (excess air coefficient) and other detection data.

  4) Close the serial port

  When the industrial computer wants to stop exhaust gas detection, the "VISA Close" function can be used to close the serial port and release the resources occupied by LabVIEW.

  3 Experimental Results

  We conducted multiple car exhaust detection experiments on the car exhaust detection system developed based on LabVIEW8.2. During the experiment, different car types were selected and a large amount of experimental data was obtained. Figure 4 shows the measurement results of a small passenger car. The figure shows the original data curves of idle and high idle HC. You can also choose to display the data curves of CO or other parameters.

Measurement results

  4 Conclusion

  This system uses LabVIEW8.2 as the development platform, and can conveniently detect the concentration of automobile exhaust pollutants such as HC, CO, CO2, O2, and NO. The experimental results show that the system has high stability and measurement accuracy. In addition, by configuring a network card on an industrial computer, the network detection of automobile exhaust can be realized, so that the automobile exhaust detection system can be easily applied to new car research and development experiments, new car factory inspections, and the comprehensive performance test line of automobiles for regular inspections of vehicles on the road by traffic management departments. The application prospects are very broad.

Reference address:Automobile exhaust gas detection system based on virtual instrument technology

Previous article:The process principle of laser plastic welding
Next article:Discussion on the relationship between voltage power factor and rural power grid loss reduction

Latest Analog Electronics 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号