Funciones de evento
Modelice el comportamiento dinámico de inicio y fin añadiendo rutinas personalizadas a los métodos de iniciación y finalización del modelo predeterminado. Durante la simulación, controle cuándo se ejecutan los métodos con eventos. Cree funciones para reiniciar los bloques con valores iniciales.
Bloques
Temas
- 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 and Reset Parameter Values
Use the Parameter Writer block to change block parameter values during model simulation.
- Reinitialize States of Blocks in Subsystem
Use a Reinitialize Function block to implicitly and explicitly initialize states of blocks in 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.