Model dynamic start up and shut down behavior by adding custom routines to the default model initialize and terminate methods. During simulation, control when the methods execute with events. Create functions to reinitialize (reset) blocks with initial values.
Initialize Function | Executes contents on a model initialize event |
Reset Function | Executes contents on a model reset event |
Terminate Function | Execute contents on a model terminate event |
Event Listener | Add event port to a subsystem block |
State Reader | Read a block state |
State Writer | Write to a block state |
Parameter Writer | Write to a model instance parameter |
Using Initialize, Reset, and Terminate Functions
Set the state of a block with an initialize 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 model instance parameter values.
Initialize, Reset, and Terminate Function Limitations
List of unsupported blocks and features.