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

Inter-program data exchange and synchronization method

A data exchange and program technology, applied in program synchronization, inter-program communication, program startup/switching, etc., to achieve the effect of simplifying workload and data security protection

Pending Publication Date: 2022-04-12
强波
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0030] The purpose of the present invention is to overcome the deficiencies of the prior art, provide a simple function to realize data interaction, solve the problem of data synchronization between programs, and realize the inter-program data exchange with the effect of synchronous display of inter-program interface with the synchronized 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
  • Inter-program data exchange and synchronization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Inter-program data exchange and synchronization method of the present invention firstly copy the program configuration file to the path where the data acquisition program (SPx) is located -> data display program CPx) start the data acquisition program (SPx) -> pass in the data acquisition program (SPx) Call the data exchange function -> data acquisition program (SPx) executes the data exchange function -> data acquisition program (SPx) finds the window handle of the data display program (CPx) through the configuration file -> obtains the write operation permission and writes the data- >The data acquisition program (SPx) sends a custom message to notify the data receiving program (CPx) of the read data operation->the data display program (CPx) receives the custom message and reads the data->notifies the completion of the read operation and releases the write operation authority. The specific process diagram is as follows figure 1 As shown, the technical solution of the ...

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 an inter-program data exchange and synchronization method. The method comprises the following steps: S1, starting a data acquisition program; s2, reading measurement data and encoding the measurement data; s3, calling a data exchange function; s4, creating or opening a memory mapping file, naming the memory mapping file, and creating or opening a write operation mutual exclusion lock and a read operation mutual exclusion lock of the memory mapping file; s5, forcibly entering a data writing operation by the data acquisition program; s6, locking a write operation mutual exclusion lock, and writing the acquired data into the memory mapping file through a data exchange function; s7, sending a custom message to the data display program, and notifying the data display program to read the data from the memory mapping file; and S8, the data display program releases the write operation mutual exclusion lock, and the data acquisition program locks the read operation mutual exclusion lock. According to the method, the effect of interface synchronous display between programs is achieved, the data are transmitted in the mode of customizing the message and the memory mapping file, and the data security is greatly protected.

Description

technical field [0001] The invention belongs to the field of automatic test and measurement, in particular to a data exchange and synchronization method between programs. Background technique [0002] In the field of automatic test and measurement, it is often necessary to collect and display the measurement results in instruments and meters. In the open automatic test system, the data acquisition program is an independent executable program, and the data display platform is an independent program, so the data exchange and synchronization between the two become the key point of the open automatic test system design. difficulty. In this paper, the open automatic test system is mainly used for the research and development, debugging and production of electronic components, radio frequency components, microwave components and other electronic products, so as to ensure that only qualified test objects can be put into use. An open automatic test system generally consists of aut...

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
IPC IPC(8): G06F9/52G06F9/48G06F9/54
Inventor 强波
Owner 强波