Analysis method and monitoring method for C language simulation model

A simulation model, C language technology, applied in the field of computer simulation, can solve problems such as unnecessary and repetitive work, and achieve the effect of complete content and simple implementation process

Active Publication Date: 2012-08-08
BEIJING RUNKE GENERAL TECH
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present invention provides an analysis and monitoring method of a C language simulation model, which is...

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
  • Analysis method and monitoring method for C language simulation model
  • Analysis method and monitoring method for C language simulation model
  • Analysis method and monitoring method for C language simulation model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] Embodiment 1 of the present invention provides an analysis method of a C language simulation model. Before executing the method, a C code analysis method class is generated from a grammar file in advance. The C code analysis method class includes a syntax analysis module, a lexical analysis module, and a syntax tree. build module, figure 1 It is a flow chart of the analysis method provided by the embodiment of the present invention, the method includes:

[0034] S11: calling the lexical analysis module in the C code analysis method class to analyze the lexical content of the imported C language simulation model to form a token flow;

[0035] S12: call the grammatical analysis module in the C code analysis method class, and analyze the grammatical structure of the imported C language simulation model according to the token flow;

[0036] S13: calling the syntax tree generating module in the C code analysis method class to generate a corresponding syntax tree according t...

Embodiment 2

[0061] Embodiment 2 of the present invention provides a monitoring method of a C language simulation model, image 3 A flowchart of a monitoring method provided by an embodiment of the present invention, the method includes:

[0062] S31: The host computer simulation management software calls the C language compiler to compile the imported C language simulation model, and compiles and generates an executable application program;

[0063] S32: The host computer simulation management software analyzes the imported C language simulation model using the analysis method of the C language simulation model in Embodiment 1;

[0064] S33: The upper computer simulation management software downloads the executable application program to the simulation lower computer to perform real-time calculation of the model;

[0065] S34: The host computer simulation management software displays the variable information in the model information file obtained through the analysis method of Embodiment...

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 an analysis method for a C language simulation model. A C code analysis method category is generated by grammar files in advance, wherein the C code analysis method category comprises a syntax analysis module, a lexical analysis module and a syntax tree generation module. The method includes the steps that the lexical analysis module in the C code analysis method category is called to analyze lexical content of the imported C language simulation model, so as to form a token flow; the syntax analysis module is called to analyze the syntax content of the imported C language simulation model according to the token flow; the syntax tree generation module is called to generate a corresponding syntax tree according to the syntax content obtained through analysis; and information is extracted from the syntax tree and stored in a model information file. The invention further provides a monitoring method of the C language simulation model. The monitoring method comprises the analysis method. The analysis method and the monitoring method provided by the invention fill in the present blanks in the C language simulation model analysis and monitoring technology in china, and the implementation processes of the analysis method and the monitoring method are simple.

Description

technical field [0001] The invention relates to the technical field of computer simulation, in particular to an analysis and monitoring method of a C language simulation model. Background technique [0002] The core of computer simulation technology includes simulation model and simulation platform. The simulation model is an abstract description of the characteristics of the simulated entity object, which has similar mathematical and physical attributes to the entity and reflects the characteristics and laws of the entity. The description of the simulation model can be realized through various computer languages ​​such as FORTRAN language, C language, M language, etc., according to the corresponding coding rules, and can also be added, subtracted, multiplied and divided by building blocks through modeling tools such as MATLAB / Simulink. The construction of the basic mathematical operation module is realized. No matter which way the simulation model is described, it needs t...

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/45
Inventor 杨盈范智刚罗喜霜
Owner BEIJING RUNKE GENERAL TECH
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