Synchronous simulation code generating method based on annotation

A code generation and code technology, applied in software simulation/interpretation/simulation, program control devices, etc., can solve the problem that model modification and parameter adjustment cannot be maintained in the simulation software, the model cannot continue to use software simulation, and real-time simulation of the underlying code There is no such problem, and the effect of shortening the design cycle, reducing the repetitive workload, and shortening the work cycle is achieved

Active Publication Date: 2014-12-10
PEKING UNIV
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the current transition between software simulation and real-time simulation is often one-time. The simulation software only provides a one-time export of the simulation description model to the real-time simulation underlying code, and there is often no follow-up tracking of the exported real-time simulation underlying code. Then the operation on the underlying code of real-time simulation has nothing to do with the simulation software, and the user cannot continue to use the convenience brought by software simulation for subsequent debugging of the model; if the simulation personnel have modified the software model, they can only re-export it It is a new real-time simulation model, and the original modification on the real-time simulation model will not be retained; that is, there is no synchronous relationship between software simulation and real-time simulation. Once the real-time simulation model is generated, it is not associated with software simulation. , the subsequent model modification and parameter adjustment on the simulator cannot be maintained in the simulation software

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
  • Synchronous simulation code generating method based on annotation
  • Synchronous simulation code generating method based on annotation
  • Synchronous simulation code generating method based on annotation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0040] simulation description model

[0041] Our simulation description model uses XML as the description language, which is convenient for expansion and reading. The topmost element is called a project, and the structural unit under the project is called a component. Each component describes a structural unit, and there are modules under the component. A module is the most basic unit to describe a function, and is generally used to describe a certain algorithm. . Variables can be defined under projects, components and modules as their data. There can be an association relationship between components or modules; specific associated data can be defined on the association relationship.

[0042] In this way, each component of the model language can correspond to each modeling element of the modeling software, and at the same time, attributes can be added and deleted flexibly; it is easy to read, does not require high computer knowledge for the simulator, and is easier to read ...

Embodiment

[0051] The code generation process is as follows Figure 4 shown.

[0052] Users can use simulation software for rapid prototype construction, and adjust the structure and parameters of the model by performing offline simulation on the simulation description model. When the model is more mature, the simulation code can be generated and deployed to the simulator or other real-time simulation systems. Such as Figure 4 As shown, the user can perform some necessary configurations on the code generation function, such as the code generation path, whether to cover the existing project, etc., and then generate the simulation code file through the code converter according to the simulation model, load model parameters and other information.

[0053] The generated code can be exported as a VC project for the convenience of users to view, edit and manage. The specific implementation technology is as follows:

[0054] 1) The system maintains a template of a VC blank project, and a p...

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 provides a synchronous simulation code generating method based on annotation. The synchronous simulation code generating method based on annotation includes the steps that a simulation description model is designed; the simulation description model is derived to be a bottom-layer simulation code; the derived simulation code is placed in an actual simulator to be executed, the simulation code is modified according to an execution result, and then a modification result is synchronized into the simulation description model. Through the method, synchronous generation of the simulation description model and the simulation code can be completed. By using the synchronous simulation code generating method, the advantages of software simulation can be used fully, simulation software is applied to the real-time simulation field, the design cycle of the simulation model can be shortened, human-caused errors can be reduced, repeated workload can be reduced, and the requirements for programming knowledge of simulation personnel can be reduced.

Description

technical field [0001] The invention provides a method for realizing design reuse between software simulation and real-time simulation based on code generation and shortening the working cycle. Specifically, it involves the use of an automatic code export and code reverse method based on annotations and special labeling rules to realize synchronous communication between non-real-time simulation and real-time simulation of software using code engineering. Background technique [0002] Simulation technology is a multidisciplinary comprehensive technology based on cybernetics, system theory, information technology and similar principles, using special equipment and computers as tools, and using system models to conduct dynamic tests on actual or imagined systems . Through the imitation of the real system, some necessary information can be obtained, and then the problems that arise in real life can be solved. With the rapid development of science and technology, simulation tec...

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): G06F9/44G06F9/455
Inventor 黄雨黄舒志张世琨
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products