Enable
Purpose
Control execution of an atomic subsystem
Library
System
Description
The Enable block is used in an atomic subsystem (see Virtual and Atomic Subsystems) to create an enabled subsystem. When you copy an Enable block into the schematic of a subsystem, a corresponding enable terminal will be created on the Subsystem block. In order to move this terminal around the edges of the Subsystem block, drag the terminal with the middle mouse button. Alternatively, use the left mouse button while holding the Shift key.
An enabled subsystem is executed while the enable signal is non-zero. The enable signal may be a vector signal. In this case the enabled subsystem is executed while any enable signal is non-zero.
If the sample time of the Subsystem block is not inherited, the enable signal will be evaluated only at the instants specified by the sample time parameter.
Note
An enabled subsystem may not contain any physical components.
Parameters
- Width
The width of the enable signal. The default
automeans that the width is inherited from connected blocks.- Show output port
When this parameter is set to
on, the Enable block shows an output terminal for accessing the enable signal within the subsystem.- Output data type
The data type of the output signal. See Data Types.
- Data type overflow handling
Specifies how a data type overflow is handled. See Data Types. This parameter only appears if Output data type is not set to a floating-point data type.
Probe Signals
- Output
The output signal of the Enable block.