This example shows how to use the Initialize Function, Reset Function, and Terminate Function blocks to read and write states in a Simulink model. For more information on configuring the block settings, see Using Initialize, Reset, and Terminate Functions.
Discrete-Time Integrator | Event Listener | Initialize Function | Reset Function | State Reader | State Writer | Terminate Function