How to debug the code in MatlabFunction during running in real-time windows target
조회 수: 7 (최근 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!