Why are "test points" used in Code Generation ?

조회 수: 6 (최근 30일)
MIN HOON
MIN HOON 2023년 1월 27일
댓글: MIN HOON 2023년 1월 31일
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일
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
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개)

카테고리

Help CenterFile Exchange에서 Test Model Components에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by