Products & Services Solutions Academia Support User Community Company

Learn more about SimEvents   

sedb.currentop - Package: sedb

Current operation in discrete-event simulation

Syntax

currentop

Description

currentop displays the most recent message in the simulation log. If this message represents a dependent operation, the output also includes a message about the most recent independent operation in the simulation log.

Definitions

Independent Operation

An independent operation is one of these operations:

For more information, see Independent Operations and Consequences in the Debugger.

Dependent Operation

A dependent operation is a consequence of an independent operation.

Examples

Compare the current operation display with the simulation log:

opts_struct = se_getdbopts;
opts_struct.StartFcn={'step over','step',...
   'step','step','currentop','quit'};
sedebug('sedemo_event_priorities',opts_struct)

The output shows that the display of the current operation includes the last entry in the simulation log, which is the current operation. The display also includes the last unindented entry in the simulation log, representing the latest independent operation.

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