
2 Building Simple Models with SimEvents Software
2-20
Enable the Queue-Length Signal
The FIFO Queue block can report the queue length, that is, the number of entities it
stores at a given time during the simulation. To configure the FIFO Queue block to
report its queue length, do the following:
1
Double-click the FIFO Queue block to open its dialog box. Click the Statistics tab to
view parameters related to the statistical reporting of the block.
2
Set the Number of entities in queue parameter to On and click OK. This causes
the block to have a signal output port for the queue-length signal. The port label is
#n.
Plot the Queue-Length Signal
The model already contains a Signal Scope block for plotting the entity count signal.
To add another Signal Scope block for plotting the queue-length signal (enabled above),
follow these steps:
1
In the main SimEvents library window, double-click the SimEvents Sinks icon to
open the SimEvents Sinks library.
2
Drag the Signal Scope block from the library into the model window. The block
automatically assumes a unique block name, Signal Scope1, to avoid a conflict with
the existing Signal Scope block in the model.
3
Connect the #n signal output port of the FIFO Queue block to the in signal input
port of the Signal Scope1 block by dragging the mouse pointer from one port to the
other. The model now looks like the following figure.
Comentários a estes Manuais