Abstract:
A device may receive a state chart generated via a technical computing environment. The state chart may include a state block with a single section of textual code. The single section of textual code may include a time-based portion and an output portion. The device may initiate execution of the state chart, and may process, during the execution of the state chart, the time-based portion with a graphical engine of the technical computing environment to generate a time-based method. The device may process, during the execution of the state chart, the output portion with a textual engine of the technical computing environment to generate an output method. The device may provide the time-based method and the output method in output code, where the time-based method may be separate from the output method in the output code.
Abstract:
A method may comprise determining, by executing a first model having first configuration parameters, a first result associated with the first model. The method may comprise determining, by executing a second model having second configuration parameters, a second result associated with the second model. The method may comprise determining, based on the first result, the second result, and equivalency criteria, that the second model is not functionally equivalent to the first model. The equivalency criteria may indicate that the second model is functionally equivalent to the first model when a difference between the second result and the first result satisfies a threshold. The method may comprise modifying a configuration parameter, of the second configuration parameters, to cause the second model to improve toward functional equivalence with the first model.
Abstract:
A method of receiving a state chart that includes two or more state blocks, and an implicit event command in a graphical portion of the state chart. One of the state blocks includes textual code understood by a textual engine of a technical computing environment (TCE). The implicit event command is not understood by a graphical engine of the TCE. The method further transforms the implicit event command into a form that is understood by the graphical engine, and initiates execution of the state chart. During execution of the state chart, the transformed implicit event command is parsed by a computing device to identify an event associated with a first state block, and a command. When the event occurs during execution of the state chart, the command initiates execution of another state block, the second state block being initiated without an explicit event command being provided therein.
Abstract:
Model elements of an executable model, representing a physical system, are partitioned into one or more linear portions and one or more nonlinear portions. Simulating behavior of the physical system, by executing the model, includes, for each of multiple simulation time intervals, for a first nonlinear portion, computing a correlation matrix characterizing noise associated with one or more ports of the model. A scattering matrix corresponds to a portion of the physical system represented by the first nonlinear portion without accounting for any noise within the portion of the physical system. The correlation matrix is derived from the scattering matrix based on noise within the portion of the physical system. Noise sources representing noise within the portion of the physical system are identified based on the correlation matrix. At least one characteristic of noise associated with each noise source is computed, and noise characteristics are output at selected ports.
Abstract:
A device may receive a model generated via a technical computing environment, where the model included a state chart with one or more variables. The device may receive a selection of a particular variable from the state chart, and may provide, for display and based on the selection, a user interface for defining attributes associated with the particular variable. The device may receive, via the user interface, one or more user-defined attributes for the particular variable, where at least one of the one or more user-defined attributes is defined independently of a reference to the particular variable. The device may apply the one or more user-defined attributes in the model and the state chart.
Abstract:
A device may receive a state chart generated via a technical computing environment. The state chart may include a state block with a single section of textual code. The single section of textual code may include a time-based portion and an output portion. The device may initiate execution of the state chart, and may process, during the execution of the state chart, the time-based portion with a graphical engine of the technical computing environment to generate a time-based method. The device may process, during the execution of the state chart, the output portion with a textual engine of the technical computing environment to generate an output method. The device may provide the time-based method and the output method in output code, where the time-based method may be separate from the output method in the output code.
Abstract:
A computing device may create a link between a first attribute of a model and an attribute from a spatial environment. The model, when executed, may simulate the behavior of a system. The computing device may further observe a physical object in the spatial environment, and receive a value of the attribute from the spatial environment based on observing the physical object in the spatial environment. The computing device may also adjust a value of a second attribute, of the model, from a first value to a second value based on the created link and the received value of the attribute from the spatial environment. The computing device may execute the model using the second value.
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 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 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.