MATLAB SIMEVENTS RELEASE NOTES Uživatelská příručka Strana 37

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 36
Build a Discrete-Event Model
2-15
Starting at T=1, the plot is a stairstep plot. The stairs have height 1 because the
server processes one entity at a time, so entities depart one at a time. The stairs have
width equal to the constant service time, which is one second.
Insert Blocks
You can insert a block in an existing line, if the block that you want to insert:
Has only one input and one output port.
Has connection port types (i.e. entity ports or signal ports) that correspond with the
data on the existing line. For example, in an existing entity line, you can insert only
a block that accepts and outputs entities. You cannot insert a block that accepts and
outputs event-based signals.
To insert a block in a line:
1
Drag the block over the line.
2
Release the mouse button. SimEvents inserts the block in the line.
Build a Model Using Model Construction Commands
This example shows how to use model construction commands to add blocks to a model
and connect them.
Suppose you want to add a Time-Based Entity Generator block and a FIFO Queue block
to a model and connect them:
This procedure shows you how to add and position the two blocks in a model, for
example, MyModel.
Add the Time-Based Entity Generator block and position it.
add_block(['simeventslib/Generators/Entity Generators/', ...
'Time-Based Entity Generator'], 'MyModel/Time-Based Entity Generator');
Zobrazit stránku 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 113 114

Komentáře k této Příručce

Žádné komentáře