Main Content

Function-Call Subsystem

Subsystem whose execution is controlled by external function-call input

  • Function-Call Subsystem block

Libraries:
Simulink / Ports & Subsystems

Description

The Function-Call Subsystem block is a Subsystem block preconfigured as a starting point for creating a subsystem that executes when a function-call input port receives a function-call event. A Stateflow® chart, Function-Call Generator block, S-Function block, or Hit Crossing block can provide function-call events. See Using Function-Call Subsystems.

Use Function-Call Subsystem blocks to:

  • Schedule the execution order of model components.

  • Control the rate of model component execution.

Simulink® ignores any priority set on a Function-Call Subsystem block, but you can set the priority on a block connected to the function-call port of the subsystem. The function-call port can receive a function-call event from a Stateflow chart, MATLAB Function block, Function-Call Generator block, S-Function block, or Hit Crossing block.

Ports

Input

expand all

Signal input to a Subsystem block, specified as a scalar, vector, or matrix. Placing an Inport block in a Subsystem block adds an external input port to the block. The port label matches the name of the Inport block.

Use Inport blocks to receive signals from the local environment.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point | enumerated | bus | image

A Trigger block in a Subsystem block adds an external input port to the block. A Trigger type of function-call makes the block a Function-Call port block that accepts function-call events.

Output

expand all

Signal output from a Subsystem block, returned as a scalar, vector, or matrix. Placing an Outport block in a Subsystem block adds an external output port to the block. The port label matches the name of the Outport block.

Use Outport blocks to send signals to the local environment.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point | enumerated | bus | image

Parameters

For an explanation of the Function-Call Subsystem block parameters, see Subsystem.

Block Characteristics

Data Types

Booleana | busa | doublea | enumerateda | fixed pointa | halfa | integera | singlea | stringa

Direct Feedthrough

no

Multidimensional Signals

yesa

Variable-Size Signals

yesa

Zero-Crossing Detection

no

a Actual data type or capability support depends on block implementation.

Extended Capabilities

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

Version History

Introduced before R2006a