Function-Call Generator
Provide function call events to control the execution of a subsystem or model.
Description
The Function-Call Generator block provides function call events that execute a function call subsystem or function call model at the frequency specified by the Sample time parameter. A function-call subsystem or function-call model is a subsystem or model that contains a block Trigger, for which the Trigger type parameter is set to function-call
.
To iteratively execute each function call subsystem or function call model multiple times at each time step, use the Number of iterations parameter.
Ports
Output
Out - output signal
FunctionCallEvent
Sends function call events to the input port of the function call subsystem or function call model. This port has no name in the block.
FunctionCallEvent is a special output signal type produced by the Function-Call Generator block that indicates the need for a function call event.
Parameters
Sample time - time interval
1 (by default)
| scalar
| vector
| -1
Specify the time interval between function call events for the function call subsystem or function call model. If the actual frequency of the subsystem or model calls differs from the interval specified by this parameter, the system displays an error.
By default, the Function-Call block uses a time interval equal to 1
. To specify a different interval, enter a valid sampling step or specify -1
to inherit the time interval from the model.
Block parameter |
|
Values |
|
By default |
|
Number of iterations - number of function calls at each time step
1 (By default)
| Number of iterations
Number of function calls at each time step.
Settings.
-
1
- provides a function call once per time step. -
` integer` - integer with or without sign. Provides the specified number of function calls at each time step.
Block parameter |
|
Values |
|
By default |
|