Are there any Debugging Output Possibilities in Simulink Code Generation?

조회 수: 1 (최근 30일)
Thomas Krößwang-Ridler
Thomas Krößwang-Ridler 2016년 8월 10일
댓글: Swarooph 2016년 8월 10일
Is there any way to implement debugging variables that can be obtained within the generated C-code? We would need this in order to record internal variables during processing of the generated C-code in the embedded system.
I really don't want to guide each signal of interest to an output port in Simulink in order to have it available in the generated C-code as part of the External output struct. This would make the simulink program very complicated and intransparent since there are many convoluted subsystems in our project.
Is there any possibility to place something like a "probe block" within simulink that makes a signal connected to it appear as a variable within the C-code? For example as part of the Block signals (auto storage) struct or the Block states (auto storage) for system '<Root>' struct?
If not, is there any other way to include some debugging capabilities into the C-code?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by