Main Content

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Einzelne Simulationen ausführen

Starten und steuern Sie einzelne Simulationen direkt aus dem Simulink® Editor oder programmatisch über die MATLAB® Eingabeaufforderung

Durch die Simulation eines Modells erhalten Sie die Ergebnisse der Algorithmen, die Sie durch den Modellierungsprozess erstellen. Sie können mit den Simulationen interagieren, indem Sie das Tempo der Simulation anpassen, die Modellparameter einstellen, die Simulation anhalten oder pausieren und die Portwerte anzeigen, um die Modellierung Ihres Modells zu bewerten. Simulationen helfen Ihnen, die Entwicklung und das Verhalten Ihres Modells zu verstehen.

Simulieren Sie ein Modell interaktiv, indem Sie auf die Schaltfläche Run in der Simulink-Symbolleiste klicken, oder programmatisch mithilfe von Funktionen wie sim und set_param im MATLAB-Befehlsfenster oder einem MATLAB-Skript.

Informationen zur Durchführung von parallelen und Batch-Simulationen finden Sie unter Mehrere Simulationen ausführen.

Modelleinstellungen

alle erweitern

EingabeOption to load external input data for simulation using top-level input ports
AnfangszustandOption to specify initial model state or operating point for simulation
EndzuständeOption to log final state values
Endbetriebspunkt speichernOption to save complete model operating point when simulation is paused or stopped
Betriebspunkt-Objekt aus einer anderen VersionDiagnostic behavior when loading initial operating point generated in different release
Betriebspunkt-Wiederherstellungsschnittstelle-Prüfsumme stimmt nicht übereinDiagnostic behavior when interface checksum does not match between initial operating point and model

Tools

Simulationstempo-OptionenSlow simulation to a specified ratio of simulation time to wall clock time

Funktionen

alle erweitern

simRun and script programmatic simulations of Simulink models
set_paramSet Simulink parameter value
get_paramGet parameter names and values
slsim.allowedModelChangesDetermine changes you can make to model based on simulation status (Seit R2022b)
Simulink.BlockDiagram.getInitialStateGet initial state data from block diagram
get Get operating point information for Stateflow chart, MATLAB System block, or S-function
setSet operating point information for Stateflow chart, MATLAB System block, or S-function
findQuery and access properties on Simulink.SimulationOutput object
getAccess simulation results in Simulink.SimulationOutput object
getSimulationMetadataAccess simulation metadata in Simulink.SimulationOutput object
removePropertyRemove property from Simulink.SimulationOutput object
setUserDataAdd data to metadata in Simulink.SimulationOutput object
setUserStringAdd string to metadata in Simulink.SimulationOutput object
whoGet names of editable properties on Simulink.SimulationOutput object

Objekte

alle erweitern

Simulink.SimulationInputCreate Simulink.SimulationInput objects to make changes to model for multiple or individual simulations
Simulink.SimulationOutputAccess simulation outputs and metadata
Simulink.SimulationMetadataAccess metadata of simulation runs
Simulink.op.ModelOperatingPointComplete information that represents model operating point in simulation

Themen

Grundlegende Simulationen ausführen

Simulationen analysieren

Iterative Simulationen mit Fast Restart durchführen