Run simulation step by step to identify problems


sldebug Start simulation in debug mode

Simulink Debugger Commands

ashow Show algebraic loop
atrace Set algebraic loop trace level
bafter Insert breakpoint after specified method
break Insert breakpoint before specified method
bshow Show specified block
clear Clear breakpoints from model
continue Continue simulation
disp Display block's I/O when simulation stops
ebreak Enable (or disable) breakpoint on solver errors
elist List simulation methods in order in which they are executed during simulation
emode Toggle model execution between accelerated and normal mode
etrace Enable or disable method tracing
help Display help for debugger commands
nanbreak Set or clear nonfinite value break mode
next Advance simulation to start of next method at current level in model's execution list
probe I/O and state data for blocks
quit Stop simulation debugger
rbreak Break simulation before solver reset
run Run simulation to completion
slist Sorted list of model blocks
states Current state values
status Debugging options in effect
step Advance simulation by one or more methods
stimes Model sample times
stop Stop simulation
strace Set solver trace level
systems List nonvirtual systems of model
tbreak Set or clear time breakpoint
trace Display block's I/O each time block executes
undisp Remove block from debugger's list of display points
untrace Remove block from debugger's list of trace points
where Display current location of simulation in simulation loop
xbreak Break when debugger encounters step-size-limiting state
zcbreak Toggle breaking at nonsampled zero-crossing events
zclist List blocks containing nonsampled zero crossings
Was this topic helpful?