Unprecise comments in auto-generated code regarding sample time and task ID

2 ビュー (過去 30 日間)
Michael Kotthaus
Michael Kotthaus 2016 年 12 月 15 日
Hello Simulink experts,
in the ert_main.c which was created by the Embedded Coder with the Solver option Treat each discrete rate as a separate task activated I get comments like:
/* If task "i" is running, don't run any lower priority task */
/* Step the model for subrate "i" */
/* Indicate task complete for sample time "i" */
I think, only the first comment is correct, because i is the task ID and not the associated sample time. It should better say something like
/* Step the model for subrate of task "i" */
/* Indicate task "i" complete for sample time ... */
What do you think? Can you improve the comments?
michaeL

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by