Main Content

Conditionally Executed Subsystems Overview

Aconditionally executed subsystemis an atomic subsystem that allows you to control its execution with an external signal. The external signal, called thecontrol signal, is attached to thecontrol inputport. Conditional subsystems are useful when you create complex models that contain components whose execution depends on other components.

金宝app®supports these types of conditional subsystems:

  • Enabled Subsystem — Executes at each time step while the control signal is positive. Execution starts at the time step when the control signal crosses zero from the negative to the positive direction. SeeUsing Enabled Subsystems.

  • Triggered Subsystem — Executes at each time step when the control signal rises or falls to zero or crosses zero. SeeUsing Triggered Subsystems.

  • Enabled and Triggered Subsystem — Executes at the time step when the enable control signal has a positive value and the trigger control signal rises or falls to zero. SeeUsing Enabled and Triggered Subsystems.

  • 函数调用子系统——Executes when the control signal receives a function-call event. Events can occur one or more time during a time step. A Stateflow®chart,Function-Call Generatorblock,S-Functionblock, orHit Crossingblock can provide function-call events. SeeUsing Function-Call Subsystems.

Model Examples

See Also

Blocks

Related Examples

More About