How to debug the code in MatlabFunction during running in real-time windows target

1 visualización (últimos 30 días)
I am now running simulink simulation under real-time windows target. In this simulation, I use MATLAB Function block and put my code of algorithm into it. During running real-time windows target, I hope to debug these codes. And I set some break points inside MATLAB Function block. But I find that these break points do not work and the simulation cannot stop on these break points. How to debug the code in MatlabFunction during running in real-time windows target?
Thank you.

Respuestas (1)

Jan Houska
Jan Houska el 16 de Mzo. de 2015
You cannot debug MATLAB Function code while it is running in real time, compiled, running on target. You cannot place breakpoints in real-time code because in the code stops at the breakpoint, it would not run in real-time anymore and any connected device would probably fail to operate properly.
So, the only reasonable way is to debug your function before you compile it and run on target.

Community Treasure Hunt

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

Start Hunting!

Translated by