Ereignis-Funktionen
Modellieren Sie das dynamische Verhalten beim Starten und Herunterfahren, indem Sie den Standardmethoden zum Initialisieren und Beenden des Modells eigene Routinen hinzufügen. Steuern Sie während der Simulation mithilfe von Ereignissen, wann die Methoden ausgeführt werden. Sie können Funktionen erstellen, um Blöcke mit initialen Werten zu reinitialisieren.
Blöcke
Modelleinstellungen
Parameter Writer-Block-Validierung | Globally or locally enable parameter validation (Seit R2023a) |
Themen
- Common Uses of the Initialize Function Block
This example shows how to use the Initialize Function block to perform these common initialization actions.
- Using Initialize, Reinitialize, Reset, and Terminate Functions
Set the state of a block with an initialize function-call event. Reset block states with a reinitialize or reset function-call event. Save the state of a block with a terminate function-call event.
- Create Test Harness to Generate Function Calls
Schedule initialize, reset, and terminate function-call events.
- Initialize, Reset, and Terminate State of Simulink Block
This example shows how to use the Initialize Function, Reset Function, and Terminate Function blocks to respond to events in a Simulink model.
- Initialize and Reset Parameter Values
Use the Parameter Writer block to change block parameter values during model simulation.
- Working with the Reinitialize Function Block
This example shows how to use a Reinitialize Function block to reset the initial condition of a Discrete-Time Integrator block for every function-call event received by a subsystem.
- Initialize, Reinitialize, Reset, and Terminate Function Limitations
Determine whether Initialize Function, Reinitialize Function, Reset Function, or Terminate Function blocks support a block, feature, or modeling pattern.
- Prepare Sensor and Controller Models in a Distributed Monitoring System for Code Generation
Prepare models to generate code for deployment on target hardware platforms.
- Common Uses of Parameter Writer Block
This example shows how to use the Parameter Writer block to change block parameter and variable values.
- Use Connectors Tool to Visualize Relation Between Blocks
Use Connectors tool to visualize relation between Simulink® functions and their function caller blocks, reader and writer blocks or blocks which execute based on events.
- Access Data Store at Higher Level in Model Hierarchy
Access data store defined at a higher-level in the model hierarchy.