Breakpoint in Simulink MATLAB function block not working
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Fangjun Jiang
il 13 Nov 2023
0 voti
Try sim("modelName","Debug","on")?
2 Commenti
Scott
il 13 Nov 2023
Fangjun Jiang
il 13 Nov 2023
Then it is better to run simulation interactively to debug it, although you could use sldebug().
Categorie
Scopri di più su Schedule Model Components in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!