-
公开(公告)号:US11126408B2
公开(公告)日:2021-09-21
申请号:US17023418
申请日:2020-09-17
Inventor: Michael Mair , Sebastian Moors , Zein Dowe
Abstract: Source code is generated from one or a plurality of blocks of a block diagram. The block diagram is hierarchical and includes at least a first subsystem that is configured for an incremental code generation. The block diagram references a definition database which includes a first object. The method for generating the source code includes: opening, by a computer system, the block diagram including the first subsystem in a model editor; generating, by the computer system, source code for the first subsystem, wherein generating the source code for the first subsystem includes determining information about the first subsystem; storing, by the computer system, the information about the first subsystem in the first object; and generating, by the computer system, source code for the block diagram, wherein the first object is read out to influence at least one parameter for generating the source code for the block diagram.
-
公开(公告)号:US10585650B1
公开(公告)日:2020-03-10
申请号:US16230468
申请日:2018-12-21
Inventor: Zein Dowe , Michael Mair
Abstract: A computer-implemented method for generating program code based on one or more blocks of a block diagram in a technical computing environment including a model editor and a code generator. The method comprises opening the block diagram in the model editor, the block diagram comprising a delay block that delays a signal received by an input port for a number of periods before being emitted at an output port, determining that a composite signal is connected to the input port, and generating definitions for variables, the variables including a state buffer, a pointer and an index. The method further comprises generating loop code, the loop code comprising instructions for setting the pointer to a position in the state buffer with an offset of index, instructions for outputting elements from the state buffer, instructions for inputting the composite signal to the state buffer, and instructions for adjusting the index.
-