Why are "test points" used in Code Generation ?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MIN HOON
am 27 Jan. 2023
Kommentiert: MIN HOON
am 31 Jan. 2023
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.
0 Kommentare
Akzeptierte Antwort
Mark McBroom
am 28 Jan. 2023
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 Kommentare
Mark McBroom
am 31 Jan. 2023
You are correct. The code that is generated for simulation is seperate from the code generated for embedding into an ECU.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Test Model Components finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!