Main Content

Entwickeln von Apps zur Steuerung von Simulationen

Mit App Designer können Sie interaktiv benutzerdefinierte Apps entwickeln, die mit Simulink®-Simulationen interagieren

Mit App Designer können Sie benutzerdefinierte Apps entwickeln, die mit Simulink-Simulationen interagieren. Sie können Ihre App interaktiv konfigurieren, um z. B.:

  • Häufige Aufgaben auszuführen, wie Ausführen oder Pausieren einer Simulation oder Anzeige des Fortschritts. Hierfür verwenden Sie spezialisierte Simulink-UI-Komponenten.

  • Modellvariablen während einer laufenden Simulation abzustimmen, indem Sie UI-Komponenten mit Variablen im Modell verbinden.

  • Simulationsergebnisse zu visualisieren, indem Sie Zeitbereich-UI-Komponenten mit Signalen in Ihrem Modell verbinden.

Erste Schritte finden Sie unter Create App for Simulink Model.

Funktionen

alle erweitern

uitimescopeDisplay time-domain signals in app (Seit R2024a)
uisimdatabuttonCreate buttons to save or load simulation data in app (Seit R2024a)
uisimcontrolsCreate simulation controls in app (Seit R2024a)
uisimprogressDisplay simulation progress bar in app (Seit R2024a)
uisimvartunerCreate a model variable tuner UI component in an app (Seit R2024a)
bindConnect app components to simulation signals and variables (Seit R2024a)
findbindingsFind bindings between objects (Seit R2024a)

Konfigurieren von Simulationen

setExternalInputSpecify external input data for top-level input ports using SimulationInput or Simulation object
setInitialStateSpecify initial state for simulation using SimulationInput or Simulation object
setVariableSet variable values for simulation using SimulationInput or Simulation object
setModelParameterSet model parameter values for simulation using SimulationInput or Simulation object
setBlockParameterSet block parameter values for simulation using SimulationInput or Simulation object

Steuern der Simulationsausführung

initializeInitialize simulation represented by Simulation object (Seit R2024a)
startStart simulation represented by Simulation object (Seit R2024a)
stepAdvance simulation represented by Simulation object by specified amount (Seit R2024a)
pausePause active simulation represented by Simulation object (Seit R2024a)
resumeContinue paused simulation represented by Simulation object (Seit R2024a)
stopStop simulation represented by Simulation object (Seit R2024a)
terminateTerminate simulation represented by Simulation object (Seit R2024a)

Objekte

alle erweitern

BindingConnection between app components and simulation signals and variables (Seit R2024a)
SimulationControl simulation execution and tune variable, block parameter, and model parameter values (Seit R2024a)

Eigenschaften

alle erweitern

TimeScope PropertiesControl time scope UI component appearance and behavior (Seit R2024a)
LoadInputButton PropertiesControl load input button UI component appearance and behavior (Seit R2024a)
SaveOutputButton PropertiesControl save output button UI component appearance and behavior (Seit R2024a)
SimulationControls PropertiesManage simulation controls UI component appearance and behavior (Seit R2024a)
SimulationProgress PropertiesControl simulation progress bar appearance and behavior (Seit R2024a)
VariableTuner PropertiesControl variable tuner behavior and appearance (Seit R2024a)

Themen