Simulink Reference    
Trigger

Add a trigger port to a subsystem

Library

Ports & Subsystems

Description


Adding a Trigger block to a subsystem makes it a triggered subsystem. A triggered subsystem executes once on each integration step when the value of the signal that passes through the trigger port changes in a specifiable way (described below). A subsystem can contain no more than one Trigger block. For more information about triggered subsystems, see Creating a Model in Using Simulink.

The Trigger type parameter allows you to choose the type of event that triggers execution of the subsystem:

You can output the trigger signal by selecting the Show output port check box. Selecting this option allows the system to determine what caused the trigger. The width of the signal is the width of the triggering signal. The signal value is

Data Type Support

A Trigger block accepts signals of any data type except int64 and uint64.

Parameters and Dialog Box

Trigger type
The type of event that triggers execution of the subsystem.
Show output port
If selected, Simulink draws the Trigger block output port and outputs the trigger signal.
Output data type
Specifies the data type (double or int8) of the trigger output. If you select auto, Simulink sets the data type to be the same as that of the port to which the output is connected. If the port's data type is not double or int8, Simulink signals an error.
Enable zero crossing detection
Select to enable zero crossing detection. For more information, see Zero Crossing Detection in the Using Simulink documentation.

Characteristics

Sample Time
Determined by the signal at the trigger port
Dimensionalized
Yes


  Transport Delay Trigger-Based Linearization