The value of this parameter can be a vector, where each element of the
vector specifies a number of times to execute a function-call subsystem or
model. If a vector is specified, then the block outputs a vector of
function-call events, which can be split into individual function-call
events using a Demux block and used to drive
multiple function-call subsystems or models.
Suppose that you specify Number of iterations to be
[3 2]
and connect the output of this block to a
Demux block, which is connected to the control ports of
two function-call subsystems. In this case, the first function-call
subsystem executes three times at each time step, and the second
function-call subsystem executes two times at each time step.
If, however, you connect the output of this block to a single
function-call subsystem or model, the total number of times that the
function-call subsystem or model executes per time step is equal to the sum
of the vector element values. So in the example above, specifying
Number of iterations to be [3 2]
and connecting the output of this block to a single function-call subsystem
results in the function-call subsystem executing five times at each time
step.
Settings
1
Provide function-call once during each time step.
- integer
Signed or unsigned integer number. Provide the specified
number of function calls at each time step.
Programmatic Use
Block Parameter:
numberOfIterations |
Type: character vector |
Values: '1'
| '<integer>' '<vector of
integers>' |
Default:
'1' |