
Returns how many times a given task was executed
Category: Source
The Task Arrival block is recommended to count the amount of execution times of a task. Figure 1 shows an example using this block in a task using period of 1s.

Figure 1 - Task execution counter example
In this simulation, the Simulation Time was set to 10s, so the Task Arrival block must increment the output signal up to 11. Figure 2 shows the signal in the Scope block.

Figure 2 - Number of task execution events
This parameter select what task will be counted by the block.
Returns how many times a given task started a new execution.
About MWF
MWF is a traditional Brazilian company that provides a wide range of electronic and mechatronic products for industry sectors such as automotive, agricultural machinery and aerospace.
Contact Us
Rua Doutor Siqueira, 139 / Sala 804 Campos dos Goytacazes - RJ, Brasil
contact@mwf-technologies.com
© 2018-2026 MWF. All rights reserved.