Using Simulink | ![]() ![]() |
Triggered and Enabled Subsystems
A third kind of conditionally executed subsystem combines both types of conditional execution. The behavior of this type of subsystem, called a triggered and enabled subsystem, is a combination of the enabled subsystem and the triggered subsystem, as shown by this flow diagram.
A triggered and enabled subsystem contains both an enable input port and a trigger input port. When the trigger event occurs, Simulink checks the enable input port to evaluate the enable control signal. If its value is greater than zero, Simulink executes the subsystem. If both inputs are vectors, the subsystem executes if at least one element of each vector is nonzero.
The subsystem executes once at the time step at which the trigger event occurs.
![]() | Blocks That a Triggered Subsystem Can Contain | Creating a Triggered and Enabled Subsystem | ![]() |