Skip to Main Content Skip to Search
Product Documentation

Version 3.1 (R2010a) SimEvents Software

This table summarizes what's new in Version 3.1 (R2010a):

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known Problems
Yes
Details below
Yes
Summary
Bug Reports
Includes fixes

New features and changes introduced in this version are

Block-Based Breakpoints in Debugger

With the SimEvents debugger, you can investigate the behavior of particular blocks using block-based breakpoints. After you establish a breakpoint on a block, the debugger suspends the simulation when that block is about to perform certain operations. For details, see these resources:

Block Operations Information in Debugger

These blocks now include their operations in the simulation log:

These blocks now appear in the output of the sedb.blklist function and are valid as inputs to the sedb.blkinfo function:

The sedb.blklist function sorts its Command Window output and cell array output by block names instead of by block identifiers.

Compatibility Considerations

If you have code that manipulates or indexes into the output cell array from sedb.blklist, you might need to update the code to reflect new rows or a different sequence of rows.

Changes in Behavior of Pending Entity Signals

The blocks in the following table have an optional pe or #pe signal output port. The signals at these ports provide information about pending entities in the block. The port behaviors are now simpler and more consistent across the various blocks.

BlockHas Optional pe PortHas Optional #pe Port
Event-Based Entity GeneratorYesNo
Infinite ServerYesYes
N-ServerYesYes
Output SwitchYesNo
Single ServerYesNo
Time-Based Entity GeneratorYesNo

In V3.1 (R2010a), a pending entity is an entity that has tried and failed to depart from the block in which the entity resides.

When a block produces a pe output signal, the signal has an update (that is, a sample time hit) whenever there is a change in the set of pending entities that the block stores. The signal value is:

When a block produces a #pe output signal, the signal has an update whenever there is a change in the set of pending entities that the block stores. The signal value is the number of pending entities that the block stores.

Compatibility Considerations

If your models use the pe or #pe signal to control simulation behavior, perform computations, or return results, your models might behave differently. The table summarizes the behavioral changes most likely to affect your models. For typical uses of the #pe signal, in which redundant sample time hits with the same value do not matter, the behavioral changes do not change the simulation results.

Affected BlocksChange in Behavior

The pe signal does not have a sample time hit to reflect that an entity departs the first time it tries to depart. Such an entity is not a pending entity because it does not fail to depart.

The same information is true for #pe in blocks that offer this port.

 Example

  • Event-Based Entity Generator

  • Infinite Server

  • N-Server

  • Output Switch

  • Single Server

  • Time-Based Entity Generator

When pe reflects the departure or other removal of a pending entity, the sample time hit occurs after the pending entity is no longer in the block. In earlier versions, when the pending entity is the only pending entity in the block, the sample time hit occurs when the departure or other removal is imminent. The sample time hit occurs at the same simulation time, but in a different sequence compared to other simultaneous events.

 Example

  • Event-Based Entity Generator

  • Time-Based Entity Generator

When you configure the block to produce an error if an entity fails to depart, the error situation does not cause a sample time hit in pe. In this configuration, the block cannot store any pending entities, so there is no storage action to cause a sample time hit in pe.

You see the effect of this change if, after the error occurs, you examine pe in the workspace or in a plot.

  • Infinite Server

  • N-Server

If a pending entity departs and one or more pending entities remain in the block, the pe signal has a single sample time hit of 1. In earlier versions, in this situation, the signal has a sample time hit of 0 followed by a sample time hit of 1.

 Example

Renaming of Parameter to Enable Pending Entity Signal

Blocks that have an optional pe signal output port rename the parameter that you use to enable the port. The name in V3.0 (R2009b) is Status of pending entity departure or Status of pending entity. The new name in V3.1 (R2010a) is Pending entity present in block. The affected blocks are:

Expanded Options for Opening Release Gate

You can configure the Release Gate block to open upon each sample time hit of an input signal. Set the Open gate upon parameter to Sample time hit from port ts.

Blocks in Attributes Library Must Get or Set at Least One Attribute

These blocks no longer support a configuration in which the table in the dialog box is empty:

Parameters and Parameter Values Being Removed

Affected BlockAffected ParameterWhat Happens When You Use the Parameter?Use This InsteadCompatibility Considerations
  • FIFO Queue

  • LIFO Queue

  • Priority Queue

Status of pending entity departure is being removed.

In legacy models in which the parameter is set to On, the corresponding pe signal output port is inactive.

In the library block, the parameter is unavailable.

Number of entities in queueTo update legacy models, set Status of pending entity departure to Off. For more information, see the technique in Determining Whether a Queue Is Nonempty. The technique yields similar, but not identical, information.
  • FIFO Queue

  • LIFO Queue

  • Priority Queue

Capacity must have a positive value.Warns if you set the value to 0.A positive value. Alternatively, remove the block.Remove queue blocks whose capacity is zero.

  


Free Discrete Event Simulation Technical Kit

Model electronic system architectures, process flows, and logistics as queuing systems or agent-based systems.

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