-
公开(公告)号:US20190163449A1
公开(公告)日:2019-05-30
申请号:US15827196
申请日:2017-11-30
Inventor: Renata HEIN , Wolfgang TRAUTMANN , Sebastian HILLEBRAND
Abstract: A method for simulating a program modeled as one or more blocks of a block diagram in a technical computing environment. A block diagram is opened in a model editor. Source code is generated for the one or more blocks of the block diagram using the code generator. The program is configured from the source code using a predefined compiler in order to generate a binary executable file, and the program is simulated, which comprises running at least one function in the auxiliary file in order to determine at least the width of a basic data type corresponding to the enumeration variable in the binary executable file, and allocating one or more variables based on the determined byte width in order to log the simulation results.
-
公开(公告)号:US20210124563A1
公开(公告)日:2021-04-29
申请号:US17079003
申请日:2020-10-23
Inventor: Sebastian MOORS , Renata HEIN , Ulrich EISEMANN
Abstract: According to the invention, simulation code and production code are generated as source code from a model. The model comprises one or more blocks which specify a desired behavior of a program, in particular a control program. At least one of the blocks is marked with a simulation code attribute. Simulation code is generated for those blocks that include a simulation code attribute. Production code is generated for all other blocks. The generated source code includes both simulation code and production code. The simulation code portions are contained in the source code in a separable manner from the production code portions.
-