Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
slref.pdf
Скачиваний:
39
Добавлен:
26.03.2015
Размер:
16.01 Mб
Скачать

Trigger

Trigger type

Select the type of event that triggers execution of the subsystem.

Settings

Default: rising

rising

Triggers execution of the model or subsystem when the control signal rises from a negative or zero value to a positive value. If the initial value is negative, rising to zero triggers execution.

falling

Triggers execution of the model or subsystem when the control signal falls from a positive or a zero value to a negative value. If the initial value is positive, falling to zero triggers execution.

either

Triggers execution of the model or subsystem when the signal is either rising or falling.

function-call

Allows a Function-Call Generator or S-function to control execution of the subsystem or model.

Command-Line Information

See “Block-Specific Parameters” on page 8-109 for the command-line information.

2-1875

Trigger

States when enabling

Specify the state values when triggered by a function-call.

Settings

Default: held

held

Leaves the states at their current values.

reset

Resets the states.

inherit

Uses the held/reset setting from the parent subsystem initiating the function-call. If the parent of the initiator is the model root, the inherited setting is held. If the trigger has multiple initiators, set the parents of all initiators to either held or reset.

Dependencies

To enable this parameter, select function-call from the Trigger Type list.

The parameter setting applies only if the model explicitly enables and disables the function-call subsystem. For example:

The function-call subsystem resides in an enabled subsystem. In this case, the model enables and disables the function-call subsystem along with the parent subsystem.

The function-call initiator that controls the function-call subsystem resides in an enabled subsystem. In this case, the model enables and disables the function-call subsystem along with the enabled subsystem containing the function-call initiator.

The function-call initiator is a Stateflow event bound to a particular state. See “Bind Actions to Control Function-Call Subsystems” in the Stateflow documentation.

2-1876

Trigger

The function-call initiator is an S-function that explicitly enables and disables the function-call subsystem. See ssEnableSystemWithTid for an example.

Command-Line Information

See “Block-Specific Parameters” on page 8-109 for the command-line information.

2-1877

Trigger

Propagate sizes of variable-size signals

Specify when to propagate a variable-size signal.

Settings

Default: During execution

Only when enabling

Propagates variable-size signals only when enabling the model or subsystem containing the Trigger block.

During execution

Propagates variable-size signals at each time step.

Dependency

Select Function-call from the Trigger type list to enable this parameter.

Command-Line Information

See “Block-Specific Parameters” on page 8-109 for the command-line information.

2-1878

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]