How to debug the code in MatlabFunction during running in real-time windows target
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Jan Houska
on 16 Mar 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.
0 Comments
See Also
Categories
Find more on Target Computer Setup 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!