Main Content

Depurar simulaciones de forma programática

Depure y analice simulaciones en la ventana de comandos de MATLAB®, establezca puntos de interrupción, avance de simulación por unidad de tiempo y métodos de bloque

La interfaz programática de depuración de Simulink® proporciona opciones de depuración en la ventana de comandos de MATLAB que son similares a las disponibles en el editor de Simulink. Además, puede utilizar la interfaz programática para:

  • Avanzar la ejecución del modelo un bloque a la vez.

  • Establecer puntos de interrupción en métodos de bloque.

  • Establecer puntos de interrupción de modelos adicionales, como el punto de interrupción de restablecimiento de solver.

  • Mostrar información adicional sobre el modelo, incluyendo una lista de subsistemas no virtuales.

Las funciones para controlar la visualización de datos y la ejecución del modelo en una sesión de depuración de simulación están disponibles solo después de iniciar la sesión de depuración.

Funciones

expandir todo

sldebugStart simulation debugging session for Simulink model
bafterInsert breakpoint after specified method in simulation debugging session
breakInsert breakpoint before specified method in simulation debugging session
clearClear breakpoint in simulation debugging session
continueContinue simulation debugging session
ebreakSet or clear breakpoint to pause when solver error occurs in simulation debugging session
emodeSwitch between accelerator and normal mode during simulation debugging session
nanbreakSet or clear breakpoint to pause when Inf or NaN value occurs in simulation debugging session
nextProgress simulation debugging session to start of next method in model execution list
quitEnd simulation debugging session
rbreakConfigure simulation debugging session to pause before solver reset
runRun simulation debugging session from current point to end of simulation, ignoring breakpoints
stepAdvance simulation by specified increment
stopDetener una sesión de depuración de simulación
tbreakSet or clear breakpoint that pauses simulation debugging session at specified time
xbreakSet or clear breakpoint to pause when state limits step size in simulation debugging session
zcbreakConfigure simulation debugging session to pause when nonsampled zero-crossing events occur
ashowIdentify and highlight algebraic loops in simulation debugging session
atraceConfigure simulation debugging session to display information each time algebraic loop is solved
bshowHighlight block in model with specified block ID during simulation debugging session
dispDisplay information about specified block when simulation debugging session pauses
elistDisplay execution order in simulation debugging session
etraceConfigure simulation debugging session to display information when entering and exiting methods
helpDisplay help for Simulink debugging programmatic interface during simulation debugging session
probeDisplay input, output, and state data for specified block in simulation debugging session
slistDisplay sorted list of blocks in model during simulation debugging session
statesDisplay state values during simulation debugging session
statusDisplay options used in current simulation debugging session
stimesDisplay information about sample times in model during simulation debugging session
straceDisplay solver information in simulation debugging session
systemsList nonvirtual subsystems in model or model hierarchy during simulation debugging session
traceDisplay information about specified block each time block executes in simulation debugging session
undispRemove display point in simulation debugging session
untraceRemove trace point in simulation debugging session
whereDisplay current location within simulation loop during simulation debugging session
zclistList blocks that detect zero crossings in simulation debugging session

Temas