Method for sharing variables among programs in system and storage device
A technology for sharing variables and programs, applied in multi-programming devices, inter-program communication, program control design, etc., can solve the problems of occupying a large amount of CPU resources of the control mechanism, difficult maintenance, and low real-time performance, so as to save the need for update and maintenance. , The effect of reducing maintenance difficulty and maintenance cost, good backward compatibility and communication efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] see Figure 1 to Figure 2 , the method for sharing variables between programs in the system of this embodiment, the system stores a main program, a number of auxiliary programs and a database, the entity structure involved in the system includes an arithmetic module and a memory, and the arithmetic module and the memory are communicated and connected, A running platform is stored on the operation module, the main program and the auxiliary program run on the running platform, the database is stored in the memory, and the database stores a shared variable list including data addresses and variable data.
[0032] The method for sharing variables between programs in the system includes the following steps:
[0033] (1) The main program reads the data address in the database;
[0034] (2) The main program generates an address-variable mapping file according to the data address and variable data in the database;
[0035] (3) When the auxiliary program is running, the addres...
Embodiment 2
[0047] Another object of the present invention is to provide a storage device, the storage device stores the operating instructions of the method for sharing variables between the programs in the above-mentioned system, and the instructions are suitable for the processor of the computer to load and perform the following operations:
[0048] (A1) Main program and auxiliary program loading instructions;
[0049] (A2) The main program reads the data address in the database;
[0050](A3) The main program generates an address-variable mapping file according to the data address and variable data in the database;
[0051] (A4) Read the address-variable mapping file when the auxiliary program is running to obtain the correspondence between the data address and the variable data;
[0052] (A5) The auxiliary program calls the data in the corresponding data address in the database.
[0053] Compared with the prior art, in the storage device of the present invention, the stored operatio...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com