Mode-switched variable signal attributes in block diagrams
AssigneeThe MathWorks, Inc.
InventorsRamamurthy Mani, Dong Jia, Haihua Feng, Alongkrit Chutinan, Qu Zhang, Vijay Raghavan
Life of this patent
Estimating the term…
Abstract
A programming element is provided that defines model attributes in response to mode change events in a graphical modeling environment. Such definition may involve any signal attribute such as dimensions, data types, complexity and sample times. Events that trigger definition of model attributes may be explicit signaling events generated by other elements, elements within the block diagram programming environment, and elements external from the environment. Implicit events may also trigger definition of model attributes, such as a change of attribute in an input signal.
Claims13
A non-transitory computer-readable medium storing computer-executable instructions that when executed on a processor propagate attributes in a graphical model, the medium storing instructions for:
- associating a mode switching event with a first element of the graphical model, the graphical model representing a system configured to operate using a first behavior, the first element containing:
- a second element with a selected attribute, and
- a third element;
- and
- generating code from the graphical model for propagating the selected attribute from the second element to the third element in response to the mode switching event.
A system comprising:
- a memory configured to store:
- code representing a graphical model representing a modeled system, and
- a code generator for generating code from the graphical model, the graphical model having a first element responsive to a mode switching event and containing a second element with a selected attribute and a third element;
- and
- a processor configured to operate the code generator to generate code from the graphical model to cause the second element to propagate the selected attribute to the third element upon the first element receiving the mode switching event.
Dependencies are inferred from the claim text.