Why are "test points" used in Code Generation ?

above site, Documentation is saying that
"Test points are primarily intended for use when generating code from a model with Simulink Coder™. For more information about test points in the context of code generation, see Appearance of Test Points in the Generated Code (Simulink Coder)."
But I couldn't know how and why test points are used when we generate code, eventhough I follow the recommended URL and read that.
Therefore, I'd like to know the usage of test point in code generation step.

 採用された回答

Mark McBroom
Mark McBroom 2023 年 1 月 28 日

0 投票

A test point results in a dedicated variable in the generated code that can then be monitored. Otherwise, Simulink Coder will try to use/reuse local variables to hold the values of intermediate signals in the Simulink model. The dedicated variable can the observed with a debugger or other similar types of tools to determine proper behavior of the generated code.

3 件のコメント

MIN HOON
MIN HOON 2023 年 1 月 30 日
Now, with your kind expression, I just now have sure to know that code generation can be seperated in two different concepts.
Is that right? Code generation for doing simulation in simulink is distingushied with for embedding to any ECU?
Mark McBroom
Mark McBroom 2023 年 1 月 31 日
You are correct. The code that is generated for simulation is seperate from the code generated for embedding into an ECU.
MIN HOON
MIN HOON 2023 年 1 月 31 日
ok thanks!

サインインしてコメントする。

その他の回答 (0 件)

製品

リリース

R2015b

質問済み:

2023 年 1 月 27 日

コメント済み:

2023 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by