Abstract:
A system and method graphically display ports in a discrete event system (DES) environment. A graphical representation of a model having at least one DES component is provided in the DES environment. A first port of the DES component and a second port of the DES component are indicated by symbols. The first port is indicated by a first symbol representing a port type of the DES environment and the second port is indicated by a second symbol representing a port type of a non-DES environment.
Abstract:
Systems and methods evaluate simulation models and measure floating point arithmetic errors in terms of Unit in Last Place (ULP). The simulation model may include model elements that perform numerical computations using Native Floating Point (NFP) arithmetic. The model elements may be arranged to implement a procedure. A data store may include local ULP errors predetermined for the model elements. The systems and methods may retrieve the local ULP errors for the model elements included in the model, and may apply a rules-based analysis to compute an overall ULP error of the simulation model. The systems and methods may present the overall ULP computed for the model. The systems and methods may also present intermediate ULP errors determined for portions of the simulation model. Changes may be made to the model to reduce the overall ULP error.
Abstract:
A method may include causing a model, including a set of core model elements and a set of diagnostic model elements, to be executed. The set of diagnostic model elements may be associated with a conditional trigger-point. The conditional trigger-point may be associated with a condition of the model for triggering the conditional trigger-point. The method may include determining that the condition of the model has been satisfied. The method may include causing the set of diagnostic model elements to be displayed via a user interface based on determining that the condition of the model has been satisfied. The set of diagnostic model elements may not have been displayed, during execution of the model, prior to determining that the condition of the model has been satisfied.
Abstract:
A method, performed by a computer device, may include selecting one or more input and output points in an executable graphical model in a modeling application and simulating the executable graphical model over a plurality of time points. The method may further include generating a time domain response plot for the executable graphical model based on the simulating; obtaining matrices of partial derivatives based on the selected one or more input and output points at particular time points of the plurality of time points; generating a frequency domain response plot for the executable graphical model based on the obtained matrices of partial derivatives; and generating a bidomain simulator user interface, the bidomain simulator user interface including the generated time domain response plot and the generated frequency domain response plot.
Abstract:
In an embodiment, a technique for analyzing a model, either statically or dynamically, to check the model for one or more specified patterns with respect to accessing a data store associated with the model. The patterns may include, for example, writing to a data store prior to reading the data store, reading the data store prior to writing the data store, writing to the data store multiple times prior to reading the data store, reading the data store multiple times before writing the data store, etc. The model may be an executable graphical model that is generated in a graphical modeling environment. A result may be generated based on the analyzing. The result may be output.
Abstract:
A device may include a processor and a memory. The processor may receive a request to link a model element, of a model, and a spatial element. The model, when executed, simulates behavior of a system, and the spatial element is a physical object or an object that is rendered for display in two or more dimensions. The processor may further receive information identifying the model element, receive information identifying the spatial element, and create a link between the identified model element and the identified spatial element based on the received request. The link may allow at least one of the model element to be identified based on identification of the spatial element, or the spatial element to be identified based on identification of the model element. The memory may store the link.
Abstract:
A device receives a state chart that includes a state block, and receives a time-based or an event-based operator (time-based/event-based operator) associated with the state block. The time-based/event-based operator includes textual code understood by a textual engine of technical computing environment (TCE), and a portion of the time-based/event-based operator is not understood by a graphical engine of the TCE. The device transforms the portion of the time-based/event-based operator into a form that is understood by the graphical engine, and initiates execution of the state chart. The device processes, during the execution of the state chart, the transformed portion of the time-based/event-based operator and the state block with the graphical engine to generate graphical results. The device processes, during the execution of the state chart, the textual code of the time-based/event-based operator with the textual engine to generate textual results, and combines the graphical results with the textual results.
Abstract:
A system and method automatically generating one or more message view windows or panes based on an analysis of the execution behavior of a model, such as a computer-generated, executable graphical model. A model analyzer examines execution instructions including schedules generated for the model and the sending and receiving of messages by model components or elements. An auto diagram builder generates the one or more message view windows that includes graphical affordances representing at least some of the messages. The messages may be presented in the one or more message view windows in the order of the occurrence of the messages during execution of the model.
Abstract:
A device may receive a chart generated via a technical computing environment, where the chart includes a textual portion and a graphical portion, and the graphical portion includes state information. The device may parse the chart into the textual portion and the graphical portion, and may process the textual portion with a textual engine of the technical computing environment to generate textual results. The device may process the graphical portion with a graphical engine of the technical computing environment to generate graphical results, and may combine the textual results with the graphical results to generate chart results. The device may output or store the chart results.
Abstract:
A method, performed by a computer device, includes obtaining an in-memory representation of computer code from a block step method of an executable model in a modeling application, wherein the computer code in-memory representation includes one or more variables. The method also includes identifying, from the one or more variables, a subset of persistent variables and determining if any of the one or more variables in the subset of persistent variables are state variables. When none of the subset of persistent variables are state variables, a block output method is generated based on the computer code in-memory representation and the one or more variables. When the subset of persistent variables includes a state variable, both the block output method and a block update method are generated based on the computer code in-memory representation and the one or more variables.