Method for automatic generation of function code for simulation through visualization application program

An application program and automatic generation technology, applied in special data processing applications, electrical digital data processing, instruments, etc., can solve problems such as lowering work efficiency, lack of functional forms, and incomplete compiler consistency, so as to avoid errors and improve The effect of generating efficiency

Active Publication Date: 2013-06-05
NR ELECTRIC CO LTD +1
View PDF2 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The shortcomings of the current method of calling user function codes using custom components in digital simulation programs: the visual programming program is developed based on the actual engineering hardware system, and the codes of the input and output interfaces are closely related to specific hardware. There is a big difference between them; functions such as hardware configuration are no longer needed in pure program digital simulation; part of the generated code is not completely consistent with the compiler used in the digital simulation program in terms of syntax; there is no difference between the generated code files Form the function form that can be called by the user-defined components in the digital simulation program
Once the logic of the visualization application is changed, after the code is regenerated, it needs to be manually modified again to meet the requirements of the digital simulation program, which greatly reduces work efficiency

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
  • Method for automatic generation of function code for simulation through visualization application program
  • Method for automatic generation of function code for simulation through visualization application program
  • Method for automatic generation of function code for simulation through visualization application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Below in conjunction with accompanying drawing of description, the present invention is described in further detail:

[0025] (1) The first step: adopt the visual programming program based on the actual engineering equipment, and modify the script code of each basic graphic element to make the code generated by each graphic element suitable for the characteristics of the digital simulation program.

[0026] Modify the script code of each basic primitive so that the object codes generated by it are all C language program fragments. Such as figure 2 , the analog input interface primitives will generate DSP assembler fragments using the engineering version of the script code. The script code of the primitive is modified to form the script code of the simulation version, and the script code of the primitive will generate a C language program fragment by using the script code of the simulation version.

[0027] The purpose of modifying the script code of each basic primit...

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

A method for automatic generation of a function code for simulation through a visualization application program comprises that 1) a visualization programming program based on practical engineering equipment is used, each basic pel script code is modified, so that a code generated by each pel is suitable for characteristics of a digital simulation program; 2) inner script codes of non-control protective logic function pels such as hardware resource allocation in a visualization programming program pel base are cleared, target codes are not generated any more; 3) and codes of a code generating tool in the visualization program are modified, so that the codes generated by each pel can be automatically combined to be in a function code format which can be directly called by a self-defined element in the digital simulation program. According to the method, generating efficiency of the codes for simulation is greatly improved, errors which can be brought in a process with manual work can be effectively avoided, the difference between the codes for simulation and the codes for practical equipment is lowered, and simulation validity is improved.

Description

technical field [0001] The invention belongs to the technical field of power system digital simulation, and in particular relates to a method for automatically generating function codes for simulation by a visual application program and a program using the method. Background technique [0002] Equipment related to power electronics technology in power systems, such as high-voltage direct current transmission system (HVDC), static var compensator (SVC), flexible direct current transmission system (HVDC_Light), etc., have been more and more widely used. The control and protection system logic of these power electronic devices is very complex. In order to improve the programming efficiency of control and protection programs and improve the readability of control and protection programs, these control and protection programs are no longer directly written in code forms such as C language, but using visual programming programs (such as WinTDC, Hidraw, Accel) Write it, then autom...

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): G06F17/50
Inventor 张翔田杰李海英黄志岭
Owner NR ELECTRIC CO LTD
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