| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Ports & Subsystems
Adding an Enable block to a subsystem makes it an enabled subsystem. A subsystem can contain no more than one Enable block. An enabled subsystem executes while the input received at the Enable port is greater than zero.
At the start of a simulation, Simulink software initializes the states of blocks inside an enabled subsystem to their initial conditions.
The input for the Enable block is the port that appears on the subsystem in which the Enable block resides. The data type for this input can be any numeric data type that Simulink supports, including fixed-point data types. For more information, see Data Types Supported by Simulink.

When an enabled subsystem executes after being disabled, specify what happens to the states of blocks in the enabled subsystem.
Default: held
Holds the states at their previous values.
Resets the states to their initial conditions (zero if not defined).
| Parameter: StatesWhenEnabling |
| Type: string |
| Value: 'held' | 'reset' |
| Default: 'held' |
Specify when to propagate a variable-size signal.
Default: Only when enabling
Propagates variable-size signals only when reenabling the subsystem containing the Enable Port block. When you select this option, sample time must be periodic.
Propagates variable-size signals at each time step.
| Parameter: PropagateVarSize |
| Type: string |
| Value: 'Only when enabling' | 'During execution' |
| Default: 'Only when enabling' |
Select this check box to output the enabling signal.
Default: On
Shows the Enable block output port and outputs the enabling signal. Selecting this option allows the system to process the enabling signal.
Removes the output port from the Enable block.
| Parameter: ShowOutputPort |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
Select this check box to enable zero-crossing detection.
Default: On
| Parameter: ZeroCross |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
Sample Time | Determined by the signal at the enable port |
Dimensionalized | Yes |
Virtual | Yes, if not connected directly to an Outport block For more information, see Virtual Blocks in the Simulink documentation. |
Zero-Crossing Detection | Yes, if enabled |
![]() | Embedded MATLAB Function | Enabled and Triggered Subsystem | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |