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

Trigger

Show output port

Select this check box to output the trigger signal.

Settings

Default: On

On

Shows the Trigger block output port and outputs the trigger signal. This action allows the system to determine which signal caused the trigger. The width of the signal is the width of the triggering signal. The signal value is:

1 for a signal that causes a rising trigger

-1 for a signal that causes a falling trigger

2 for a function-call trigger

0 otherwise

Off

Removes the output port.

Command-Line Information

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

2-1879

Trigger

Output data type

Specify the trigger output data type.

Settings

Default: auto

auto

Specifies that the data type is the same as the port connected to output.

double

Sets the date type to double.

int8

Sets the data type to integer.

Dependencies

To enable this parameter, select the Show output port check box.

The Trigger block ignores the Data type override setting of the Fixed-Point Tool.

2-1880

Trigger

Sample time type

Specify the calling frequency of a subsystem.

Settings

Default: triggered

triggered

Applies to applications that do not have a periodic calling frequency.

periodic

Applies if the caller of the parent function-call subsystem calls the subsystem once per time step when the subsystem is active (enabled). A Stateflow chart is an example of a caller.

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-1881

Trigger

Sample time

Specify the calling rate for blocks.

Settings

Default: 1

Set this parameter to the sample time you expect for the calling rate of the function-call subsystem containing this Trigger block. If the actual calling rate for the subsystem differs from the rate that this parameter specifies, Simulink displays an error.

Dependency

Setting Trigger type to function-call and Sample time type to periodic enables this parameter.

Command-Line Information

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

2-1882

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