Products & Services Solutions Academia Support User Community Company

Learn more about SimEvents   

sedebug - Debug discrete-event simulation

Syntax

sedebug(sys)
sedebug(sys, opts_struct)

Description

sedebug(sys) begins a SimEvents debugger session on a model. sys is the name of the top-level system as a string. After you enter this command at the MATLAB command prompt, the prompt changes to sedebug>>. At the new prompt, you can enter debugging commands.

sedebug(sys, opts_struct) applies debugging options in opts_struct. To obtain an options structure in the correct format, use se_getdbopts. You can set the StartFcn field of opts_struct to a cell array of strings representing commands that the debugger executes after the debugger session begins.

Examples

Start and end a debugger session for a SimEvents model:

  1. Begin a debugger session for a particular model. At the MATLAB command prompt, enter:

    sedebug('sedemo_count_attributes')

    The output is:

    *** SimEvents Debugger ***
    
    Functions | Quick Start | Debugger Help
    
    %==============================================================================%
    Initializing Model sedemo_outputswitch
    sedebug>> 
  2. End the debugger session. At the sedebug>> prompt, enter:

    sedb.quit

See Also

se_getdbopts | sedb.quit

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS