High-speed, high-capacity data acquisition based on Turing Kaiwu configuration software
2026-04-06 05:57:34··#1
This paper explores the key technologies for high-speed, high-capacity data acquisition using Turing Kaiwu configuration software, expanding the application scope of configuration software and providing a new approach for the development of automated monitoring systems requiring high-speed, high-capacity data acquisition. 1 Introduction With the rapid development of computer technology and the widespread application of automation technology, general-purpose monitoring configuration software has gradually flourished, giving rise to some highly competitive products. As a general-purpose monitoring platform for continuous process control, configuration software greatly shortens the development cycle of computer monitoring system software, enhances the robustness of software products, and significantly improves economic efficiency. Since its inception, configuration software has been favored by many engineering and technical personnel for its versatility and ease of use. However, the continuous, slow-changing process monitoring characteristics of configuration software make it difficult to meet the testing requirements of medium- and high-frequency signals. In the development process of configuration software, the need for high-speed, high-capacity data acquisition has gradually become clear. 2 Overall Scheme Design Generally, high-speed, high-capacity data acquisition needs to address three aspects: high-speed data acquisition, batch data storage, and real-time data display. However, due to the need to handle many tasks simultaneously during the operation of the configuration software, it cannot adequately meet the real-time requirements of applications. High-speed, high-capacity data acquisition, on the other hand, requires prioritizing data acquisition to ensure uninterrupted real-time data collection. Considering both the demand for high-speed, high-capacity data acquisition and the specific characteristics of the configuration software, a compromise solution can be chosen: high-speed, high-capacity data acquisition with non-real-time data display. This ensures the acquisition of high-speed, high-capacity data signals without consuming excessive CPU time. High-speed, high-capacity data acquisition consists of two parts: implementing high-speed, high-capacity data acquisition in the hardware device driver of the configuration software, and then expanding the data file using plugins or other methods within the configuration environment. 3. High-Speed, High-Capacity Data Acquisition Board-type devices are stable, easy to use, and have high sampling speeds, making them commonly used external devices in high-speed data acquisition systems. In the Kaiwu 2000 configuration software, the data acquisition part is mainly implemented in the hardware device driver. Considering the specific characteristics of the high-speed data acquisition system, a write tag is created in the driver. During the execution of the write tag, two tasks are completed: high-speed, high-capacity data acquisition and batch data storage. To improve data acquisition priority and effectively reduce CPU utilization, technologies such as FIFO (First In First Out), interrupts, and DMA (Direct Memory Access) are used during data acquisition, and the data acquisition program runs in kernel mode. When writing tags, the driver initializes the board device, mainly by setting the sampling length and sampling frequency, then triggers the board device to acquire data and stores the acquired data in the board's FIFO. When the FIFO is half full, an interrupt signal is generated, and the data in the FIFO is then stored in the memory area via DMA. When the sampling length reaches the predetermined requirement, the board device stops data acquisition, and the data in the memory area is written to the data file, thus completing high-speed, high-capacity data acquisition and storage. 4. Non-real-time Data Display It is difficult to achieve real-time waveform display of medium- and high-frequency signals based on configuration software; generally, a non-real-time data waveform playback method is required. To meet the requirements of data waveform playback, a data acquisition plugin was developed based on the Turing Open Source environment. The plugins in Turing Kaiwu are similar to ActiveX controls, but compared to ActiveX controls, Turing Kaiwu plugins are smaller in size, more secure and reliable in operation, and have stronger functions. Furthermore, because they are dynamically loaded only when in use, they can effectively save system resources. The data acquisition plugin is feature-rich and can meet various functional requirements for data waveform playback, such as opening and saving data files, waveform zooming in and out, custom scaling, settings, and printing output. Data dimension conversion can be achieved by setting the maximum and minimum values of engineering and measured values in the data acquisition plugin. 5. Engineering Example Based on the above-mentioned scheme, excellent experimental results were achieved in the bolt stress testing system. The high-speed signal to be measured during the experiment was the dynamic stress change of the bolt. In the actual experiment, a write label "WRITE_FILE0" was created based on the Turing Kaiwu environment, representing the data signal of channel 0 of the board device, with a sampling length of 8192 points and a sampling frequency of 5000Hz. Data acquisition for board-type devices is very convenient in the Turing Kaiwu configuration environment. For example, a data acquisition button can be created; clicking the button completes data acquisition. If data acquisition is required based on certain conditions, it can be implemented using a scripting language. For example, `If AD0.Value<=3.5 then WRITE_FILE0.Value=True`, which is very convenient to use. The following figure shows the data waveform of the entire experimental system. As can be seen from the figure, the data waveform is well restored without any distortion, effectively tracking the dynamic changes of bolt stress, meeting the system's testing requirements, and achieving good experimental results. This also verifies the correctness of the high-speed, high-capacity, uninterrupted data acquisition scheme proposed in this paper. 6 Conclusion This paper comprehensively considers the requirements of configuration software and high-speed, high-capacity, uninterrupted data acquisition, proposing a solution for real-time data acquisition and non-real-time data display. This solution effectively meets the testing needs of medium- and high-frequency signals, expands the application scope of Turing Kaiwu configuration software, and has certain guiding significance for high-speed, high-capacity data acquisition.