xPC Target | ![]() ![]() |
This block outputs the time in clock ticks that the kernel has been executing. This is not the same as the execution time of the target application, but it is the time since you booted up the target PC.
A use for this block is to determine the execution time of subsystems in your Simulink model. Add an xPC Target Time block before and after the subsystem, and then calculate the difference in time.
The time is in clock ticks, and it uses the target PC interval timer to generate the ticks. Since the interval timer runs at a frequency of 1.193
Mhz, you can calculate the time in seconds by dividing 1.193x10
6
![]() | xPC Target TET | Asynchronous Event Support | ![]() |