Simulink Real-Time Explorer TET: How to determine which task each TET is referring to

Hello,
After running a simulink model on my target machine, my system log shows multiple TETs, each with different averages and max times for each task. How do I know which task it is referring to? I've tried exploring the target object on matlab by:
tg= slrealtime()
tg.ModelStatus.TETInfo
% this returns:
% 1×3 struct array with fields:
%
% Rate
% TETMin
% TETMax
% TETAvg
% TETMinTime
% TETMaxTime
However, it does not point to any signal within my simulink model.
Thanks,
Kevin

回答 (1 件)

Diego Kuratli
Diego Kuratli 2022 年 12 月 22 日

0 投票

By default, there is one task for each sample time in the model. Therefore, if you look at the sample times in your models, you can identify the related task:
If you explicitly partition your model, there might be multiple tasks with the same sample time. In that case, you can identify the tasks by their name. Here is an example:

カテゴリ

製品

リリース

R2021b

質問済み:

2022 年 12 月 21 日

回答済み:

2022 年 12 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by