Subsystem Trigger

This MotoHawk™ block outputs a function call when the subsystem in which it is contained is initialized, enabled, or disabled.

Block ID

Subsystem Trigger

Library

MotoHawk_lib/Trigger Blocks

Description

 

Standard subsystems are initialized once at model startup, and never again. An enabled, triggered, action, or function-call subsystem, however, can be re-initialized and/or re-enabled several times during the course of execution. The behavior of states in such a subsystem is selected using the 'States when enabling' popup in the action, trigger, or enable block at the top of a conditionally executed subsystem.

Block Parameters

Parameter Field Values Comments/Description
Initialize (First Time) Check Box (enable) Select to trigger when the states are reset at startup. This hook is available even in non-enabled subsystems.
Initialize (Subsequent Times) Check Box (enable) Select to trigger when the states are reset at startup and after re-enabling, according to the settings of the subsystem. This hook is available even in non-enabled subsystems, but would then only trigger once.
Enable Check Box (enable) Select to trigger when a subsystem is enabled, and is only available in enabled subsystems.
Disable Check Box (enable) Select to trigger when a subsystem is disabled, and is only available in enabled subsystems.