Simulink.SimulationInput
Erstellen von Simulink.SimulationInput-Objekten, um Änderungen am Modell für mehrere oder einzelne Simulationen vorzunehmen
Beschreibung
Mit dem Simulink.SimulationInput-Objekt können Sie Änderungen an einem Modell vornehmen und Simulationen mit diesen Änderungen durchführen. Diese Änderungen werden vorübergehend auf das Modell angewendet. Mit einem Simulink.SimulationInput-Objekt können Sie den ursprünglichen Zustand, Modellparameter, Blockparameter, externe Eingaben und Variablen ändern. Über das Simulink.SimulationInput-Objekt können Sie auch MATLAB®-Funktionen angeben, die zu Beginn und am Ende jeder Simulation ausgeführt werden sollen, indem Sie die setPreSimFcn- und die setPostSimFcn-Funktion verwenden.
Erstellung
Beschreibung
Eingabeargumente
Eigenschaften
Objektfunktionen
applyToModel | Apply configuration in SimulationInput object to
model |
getVariantConfiguration | Get name of variant configuration from SimulationInput
object |
loadVariablesFromExternalSource | Load variables from a custom file into Simulink.SimulationInput
object |
loadVariablesFromMATFile | Load variables from MAT file into Simulink.SimulationInput
object |
removeVariable | Remove variable from SimulationInput or
Simulation object |
setBlockParameter | Set block parameter values for simulation using
SimulationInput or Simulation
object |
setExternalInput | Specify external input data for top-level input ports using
SimulationInput or Simulation
object |
setInitialState | Specify initial state for simulation using
SimulationInput or Simulation
object |
setPostSimFcn | Set MATLAB function to run after each simulation |
setPreSimFcn | Specify MATLAB function to run before start of each simulation on
Simulink.SimulationInput object |
setModelParameter | Set model parameter values for simulation using
SimulationInput or Simulation
object |
setVariable | Set variable values for simulation using
SimulationInput or Simulation
object |
setVariantConfiguration | Set variant configuration for simulation using SimulationInput
object |
showContents | View summary of specification in SimulationInput or
Simulation object |
validate | Validate contents of SimulationInput
object |