How to debug the code in MatlabFunction during running in real-time windows target
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jan Houska
2015-3-16
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!