Generation of code from a graphical model
AssigneeThe MathWorks, Inc.
InventorsDarel Allen Linebarger, Haihua Feng, Ramamurthy Mani, Donald Paul Orofino, II
Life of this patent
Estimating the term…
Abstract
A method and system are provided for generating code from a graphical model in a graphical modeling environment. The graphical model includes at least one signal having a data size, a data dimensionality, or both that can vary from a first time instance to a second time instance as the model executes. The size and dimensionality of the signal can vary without the use of a graphically rendered connection to convey the size and dimension information to a block associated with the signal.
Claims25
A non-transitory computer-readable medium containing instructions executable by at least one processor, the instructions when executed cause the at least one processor to:
- provide an interface to permit a user to build or edit a graphical model that includes at least one block and a plurality of connections, each of the plurality of connections representing a signal received by or output from the at least one block;
- receive information regarding one of the signals, in the graphical model, that has a size or dimensionality that changes during execution of the graphical model;
- visually present the graphical model, where a single one of the plurality of connections corresponding to the one signal implicitly conveys the size or the dimensionality of the one signal that changes during execution of the graphical model;
- and
- generate code from the graphical model.
A computer-implemented method, comprising:
- receiving a graphical model that includes a plurality of blocks and a plurality of connections, each of the plurality of connections representing a signal received by or output from one of the plurality of blocks;
- identifying one of the signals, in the graphical model, that has a size or dimensionality that changes during execution of the graphical model;
- visually presenting the graphical model, where a single one of the plurality of connections corresponding to the identified signal implicitly conveys the size or the dimensionality of the identified signal that changes during execution of the graphical model;
- and
- generating code from the graphical model.
One or more devices, comprising:
- a display;
- a memory configured to:
- store a graphical model that includes at least one block and a plurality of connections, each of the plurality of connections representing a signal received by or output from the at least one block;
- and
- a processor configured to:
- receive information regarding one of the signals, in the graphical model, that has a variable size and a variable dimensionality that change during execution of the graphical model,
- visually present the graphical model on the display, where a single one of the plurality of connections corresponding to the one signal implicitly conveys information regarding the variable size and the variable dimensionality of the one signal, and
- generate code from the graphical model.
A device, comprising:
- means for receiving a graphical model that includes a plurality of blocks and a plurality of connections, each of the plurality of connections representing a signal received by or output from one of the blocks;
- means for identifying one of the signals, in the graphical model, that has a size and dimensionality that change during execution of the graphical model;
- means for visually presenting the graphical model, where a single one of the plurality of connections corresponding to the identified signal implicitly conveys the size and the dimensionality of the identified signal that change during execution of the graphical model;
- and
- means for generating code from the graphical model.
A non-transitory computer-readable medium containing instructions executable by at least one processor, the instructions when executed cause the at least one processor to:
- identify a signal, in a block diagram model, that has a variable size and a variable dimensionality that change during execution of the block diagram model, the variable size and dimensionality being conveyed between two blocks in the block diagram model;
- and
- generate code from the block diagram model that includes a representation of the identified signal.
Dependencies are inferred from the claim text.