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|
Set the state of a block with an initialize function-call event. Save the state of a block with a terminate function-call event.
Schedule initialize, reset, and terminate function-call events.
Use the Parameter Writer block to change model instance parameter values.
List of unsupported blocks and features.
Create a subsystem that resets all block states with a trigger signal.