Function Caller
Call Simulink or exported Stateflow function
Libraries:
Simulink /
User-Defined Functions
Description
A Function Caller block calls and executes a function defined with a Simulink Function block or an exported Stateflow® function. Using Function Caller blocks, you can call a function from anywhere in a model or chart hierarchy.
You can select a Simulink Function or Function Caller block to highlight related blocks. If one or more of the related blocks are in a subsystem or referenced model, the related blocks and the Subsystem block or Model block that contains the related blocks are also highlighted.
To show a related block in an open diagram or new tab, pause on the ellipsis that
appears after you select a Simulink Function or Function
Caller block. Then, select Related Blocks
from the action bar. When multiple blocks correspond
to the selected block, a list of related blocks opens. You can filter the list by
entering a search term in the text box. After you select a related block from the list,
window focus goes to the open diagram or new tab that shows the related block.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|