Clear Filters
Clear Filters

Are there any Debugging Output Possibilities in Simulink Code Generation?

2 views (last 30 days)
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?

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!