sdo.SimulationTest class
Package:sdo
Simulation scenario description
Syntax
sim_obj = sdo.SimulationTest(modelname)
Description
Create a scenario to simulate a Simulink®model. A simulation scenario specifies input signals, model parameter and initial state values, and signals to log for a model. You can also specify linear systems to compute if you haveSimulink Control Design™toolbox. Use a simulation scenario to simulate a model with alternative inputs and model parameter and initial state values, without modifying the model.
Construction
constructs ansim_obj
= sdo.SimulationTest(modelname
)sdo.SimulationTest
object and assigns the specified model name to theModelName
property and default values to the remaining properties.
You can also construct ansdo.SimulationTest
object using thecreateSimulator
method of ansdo.Experiment
object. ThecreateSimulator
method configures the properties of thesdo.SimulationTest
object to simulate the model associated with the experiment.
Input Arguments
|
Simulink model name, specified as a character vector or string. For example, The model must be on the MATLAB®path. |
适当的ties
|
Model initial state for simulation. This property can be any initial state format that |
|
Input signals. Specify signals to apply to root level input ports when simulating the model. The signal can be any input signal format that the Default: |
|
Data logged during simulation. You must also specify the signals to log in the This property is read-only. Default: |
|
Signals to log when simulating a model. This property is a Default: |
|
Linear system logging settings. This property is a vector of If you specify the Note You can also use Default: |
|
金宝app与模拟仿真软件模型的名字scenario. The model must be on the MATLAB path. |
|
Name of the scenario Default: |
|
Parameter values. The software changes the model parameters to the specified values before simulating the model and restores them to their original value after the simulation completes. This property must be a Default: |
Methods
fastRestart | Simulate金宝appmodel in fast restart mode using simulation scenario |
find | Find logged data set |
prepareToDeploy | Configure simulation scenario for deployment with金宝appCompiler |
sim | Simulate金宝appmodel using simulation scenario |
who | List logged data names |
Copy Semantics
Value. To learn how value classes affect copy operations, seeCopying Objects.
Examples
See Also
sdo.optimize
|sdo.evaluate
|sdo.SystemLoggingInfo
|createSimulator
|sdo.Experiment
Topics
- Design Optimization to Meet Step Response Requirements (Code)
- Design Optimization to Meet a Custom Objective (Code)
- Estimate Model Parameter Values (Code)
- Estimate Model Parameters and Initial States (Code)
- Design Optimization to Meet Frequency-Domain Requirements (Code)
- Class Attributes
- 适当的ty Attributes