Method for producing source code

A source code and block diagram technology, applied in the direction of creating/generating source code, code compilation, program code conversion, etc., can solve problems such as side effects
CN110506256APending Publication Date: 2019-11-26디스페이스게엠베하

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
디스페이스게엠베하
Publication Date
2019-11-26

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a method for generating source code from one or more blocks of a block diagram comprising a model of a dynamic system having at least one directional connection between two blocks, wherein the block diagram can be designed to simulate the dynamic system, and wherein at least one region in which one or more blocks are located is defined in the block diagram. The block diagram comprises a first block and a second block, wherein the first block has a first block variable and the second block has a second block variable, each block variable of the block diagram having a descriptor. The descriptor of the first block variable is compared with the descriptor of the second block variable, and a check is performed to determine whether the first block and the second block are located in the same region. The first block variable and the second block variable are implemented in the source code as a single variable if the descriptors are concordant and the blocks are located in one region. If the descriptors are different and / or the blocks are not located in the same region, the first block variable and the second block variable are implemented in the source code as twoseparate variables. Moreover, the invention relates to a method for configuring a controller, to a computer program product and to a computer system.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the generation of executable code from block diagrams, in particular for the programming of control devices. Background technique

[0002] The control unit is used in various applications in order to detect physical variables of the process and / or to influence the process by means of connected actuators; for example, this can involve anti-lock control of the braking process. The time constants that determine the dynamics of the process often result in cycle times of 1 ms or less, requiring real-time capability of the control equipment. For cost reasons, control devices often have microcontrollers with small memory and limited computing performance, so the size and efficiency of the executable code is of great importance.

[0003] To speed up the design of control devices, control strategies are often developed with the aid of models in computing environments such as MATLAB / Simulink. It is thus possible first to simulate the b...

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