Breakpoint in Simulink MATLAB function block not working

조회 수: 24 (최근 30일)
Scott
Scott 2023년 11월 13일
답변: Scott 2023년 11월 13일
I add a breakpoint to the code in my MATLAB function block in Simulink. I am running Simulink from a script using sim and it does not stop at the breakpoint. It is running the function because Simulink errors are being generated from functions called by the function block.

채택된 답변

Scott
Scott 2023년 11월 13일
I tried a breakpoint in a similar model and it worked. I then realized that the function is not running; my Simulink error is a coder error.

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2023년 11월 13일
  댓글 수: 2
Scott
Scott 2023년 11월 13일
Did not work.
Fangjun Jiang
Fangjun Jiang 2023년 11월 13일
Then it is better to run simulation interactively to debug it, although you could use sldebug().

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by