How to debug the code in MatlabFunction during running in real-time windows target
8 ビュー (過去 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!