フィルターのクリア

Breakpoint in Simulink MATLAB function block not working

17 ビュー (過去 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 Center および File ExchangeSubsystems についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by