This paper analyzes the software construction of the portable fault monitoring system from the perspective of data flow, especially the key technologies of data acquisition, data storage, data access and data maintenance, and gives the schematic code for implementation. The portable microcomputer fault monitoring system is a microcomputer system used to monitor track signals on the railway. It greatly facilitates the detection and analysis of signal equipment faults. It is an important equipment to ensure driving safety, strengthen signal equipment management, and monitor the operation of railway signal equipment. Its hardware equipment consists of only a portable microcomputer monitor, which is small and easy to move. When the track signal equipment fails, the equipment can be connected on site for monitoring and can be removed after the task is completed. It can complete the collection, recording, display, storage, data management, printing, and historical data playback of 32 analog quantities and 32 switch quantities. Considering the requirements for system software functions, operation interface and real-time performance, it is determined to use VC6.0 to write the program under Windows 98. The bottom layer is to develop a driver for the data acquisition card. Under Windows 98, VxD technology is used to realize the 1ms interruption of the system clock. After the 1ms interruption, the analog quantity and switch quantity are collected in the interrupt service program. And the collected data is stored in a data block. This part forms a dynamic link library: int.vxd. The data block pointer obtained from the dynamic link library int.vxd is passed to the upper data block memory by using the communication between VxD and the application program to realize the data sharing between data acquisition and data processing. In the upper application program, the device handle of VxD is opened, and two independent threads are opened to read the data blocks of analog quantity and switch quantity, and write them into the database through ADO (ACCESS 97 is used here). Data query, printing, waveform playback and database backup operations can be realized by accessing the database through ADO.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore