Main Content

Aperiodic Trigger

Aperiodic Trigger

Configure aperiodic trigger (interrupt-driven tasks).

For more information, see Tasks and Mapping.

Name

Specify a unique name for the interrupt-driven task configuration.

Settings

Default: Interrupt

  • Enter a unique character vector to identify the interrupt-driven task configuration. This value must be a valid MATLAB® variable.

For more information, see Tasks and Mapping.

Color

Specify a color for the interrupt icon.

Settings

Default: Blue

  • Click the color picker icon to select a color for the interrupt icon.

Tips

The interrupt icon appears on the top left of the Model block. It indicates the task to which the Model block is assigned.

  • As you add an interrupt, the software automatically assigns a color to the interrupt icon, up to six colors. When the current list of colors is exhausted, the software reassigns previously used colors to the new interrupts, starting with the first color assigned.

  • If you select a different color for an icon and then use the software to automatically assign colors, the software assigns a preselected color.

For more information, see Tasks and Mapping.

Aperiodic trigger source

Specify the trigger source for the interrupt-driven task.

Settings

Default: Posix Signal (Linux/VxWorks 6.x)

Posix Signal (Linux/VxWorks 6.x)

For Linux® or VxWorks® systems, select Posix Signal (Linux/VxWorks 6.x).

Event (Windows)

For Windows® systems, select Event (Windows).

Dependencies

This parameter enables either Signal number [2,SIGRTMAX-SIGRTMIN-1] or Event name.

  • Selecting Posix Signal (Linux/VxWorks 6.x) enables the following parameter:

    Signal number [2,SIGRTMAX-SIGRTMIN-1]

  • Selecting Event (Windows) enables the following parameter:

    Event name

For more information, see Tasks and Mapping.

Signal number [2,SIGRTMAX-SIGRTMIN-1]

Enter the POSIX® signal number as the trigger source.

Settings

Default: 2

Minimum: 2

Maximum: SIGRTMAX-SIGRTMIN-1

  • Enter the POSIX signal number as the trigger source.

Dependencies

Aperiodic trigger source > Posix signal (Linux/VxWorks 6.x) enables this parameter.

For more information, see Tasks and Mapping.

Event name

Enter the name of the event as the trigger source.

Settings

Default: ERTDefaultEvent

  • Change ERTDefaultEvent to the actual trigger source event.

Dependencies

Aperiodic trigger source > Event (Windows) enables this parameter.

For more information, see Tasks and Mapping.