Skip to Main Content Skip to Search
Product Documentation

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', 'currentop','quit'};
sedebug('sedemo_timeout',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

  


Free SimEvents Evaluation Kit

Learn how you can use SimEvents discrete-event simulation capabilities through these technical resources.

Get free kit

Trials Available

Try the latest version of discrete-event simulation products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS