Display current value of Embedded MATLAB function variable
이전 댓글 표시
Is it possible to display the current value of signals within an Embedded MATLAB function while a Simulink model is running (similar to when you hold your cursor over variables when the code is stopped)? I want to do this for troubleshooting without having to add extra outputs and displays to my EML.
답변 (1개)
Kaustubha Govind
2011년 5월 16일
1 개 추천
You should be able to debug an Embedded MATLAB Function block by selecting "Enable Debugging" from the Debug menu.
댓글 수: 2
Andrew
2011년 5월 16일
Kaustubha Govind
2011년 5월 16일
Do you mean that you need to hit the pause button to see this? Doesn't the simulation pause anyway when it hits the breakpoint?
The doc for R2010b seems to suggest that this feature existed in that release also (Type web([docroot '/toolbox/simulink/ug/f6-87946.html']) at MATLAB prompt to open up the relevant page and click on "Watching Function Variables During Simulation")
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!