Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-cache and multi-thread data acquisition method

A data acquisition and data acquisition card technology, applied in the field of data processing, can solve problems such as data loss, and achieve the effect of avoiding lost points, displaying and saving large-capacity data without lost points, and avoiding overflow.

Pending Publication Date: 2019-10-18
TIANJIN UNIV OF TECH & EDUCATION TEACHER DEV CENT OF CHINA VOCATIONAL TRAINING & GUIDANCE
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to solve the problem of data loss in the communication process between the upper computer and the lower computer in the process of system data collection, and provide a multi-buffer multi-thread data collection method

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-cache and multi-thread data acquisition method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution of the present invention will be further described below in conjunction with specific examples.

[0017] See attached figure 1 A multi-buffer and multi-thread data acquisition method includes a data acquisition card and an embedded system, adding a secondary cache to the FIFO memory of the data acquisition card to form a FIFO memory 1 and a FIFO memory 2.

[0018] As the upper computer, the embedded system adopts dual threads and two-level user buffer queues in the embedded system to form thread 1, thread 2, user buffer 1, and user buffer 2. Thread 1 is used to take data out of the FIFO memory of the data acquisition card and put it into user buffer 1, and thread 2 is used to read data from the user buffer for graphical display, and at the same time, complete the file saving of data in the storage device.

[0019] The data collection method is ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multi-cache multi-thread data acquisition method, which comprises a data acquisition card and an embedded system, and is characterized in that the data acquisition card is provided with an FIFO memory 1 and an FIFO memory 2; the embedded system is used as an upper computer; two threads and two stages of user buffer areas are adopted in the embedded system to form a thread1, a thread 2, a user buffer area 1 and a user buffer area 2, the thread 1 is used for taking out data from an FIFO memory of the data acquisition card and putting the data into the user buffer area1, and the thread 2 is used for reading the data from the user buffer area and processing the data. Wherein the FIFO memory 1 and the FIFO memory 2 are stored in turn in sequence; wherein the thread 1alternately writes in the user buffer area 1 and the user buffer area 2, and the thread 2 alternately reads the user buffer area 1 and the user buffer area 2. According to the invention, the problemsof data overflow of the FIFO memory and data loss of a user buffer area are solved, and high-speed, continuous and large-capacity data display and disk storage without loss can be realized by applying the multi-cache multi-thread data acquisition method.

Description

technical field [0001] The invention belongs to the technical field of data processing, and in particular relates to a multi-buffer multi-thread data collection method. Background technique [0002] In the data acquisition system, the display and storage of the data acquired by the data acquisition card on the embedded system (host computer) is usually realized by a timer. Since the data needs to be collected and transmitted to the embedded system for corresponding signal processing, and has high requirements for synchronization, the processing speed of modern CPU is much faster than the transmission speed of computer interface, and data transmission can only be completed through the interface. , so in high-speed big data collection, the problems of data loss and data access conflicts are particularly prominent. The multi-buffer and multi-thread data acquisition method involved in the present invention prevents data overflow through multi-buffer, and multi-thread ensures th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F5/06
CPCG06F5/065
Inventor 蒋永翔孙宏昌邓三鹏刘朝华祁宇明杨文宁王彤
Owner TIANJIN UNIV OF TECH & EDUCATION TEACHER DEV CENT OF CHINA VOCATIONAL TRAINING & GUIDANCE