フィルターのクリア

Do Simevents Entity Servers release entities in a FIFO manner?

1 回表示 (過去 30 日間)
Paul
Paul 2020 年 9 月 7 日
コメント済み: Paul 2020 年 9 月 8 日
In my model I have entities being painted several times looping back to the paint bay.
Up to 8 cure on a rack (Draying racks) before they are returned for further painting.
I had assumed that entities departing the Entity Server (Drying racks) would do so in a FIFO manner when blocked.
However some entities seem to be "overtaking" others, implying non-FIFO exit.
I could put ina FIFO buffer after the server but wanted to avoid if not necessary.
Does an Entity Server exit entities in a FIFO manner if the exit port is blocked for a while? i.e. if its blocked and serveral entities are ready to exit what order do they exit in by default?
Thanks

採用された回答

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020 年 9 月 7 日
編集済み: Abdolkarim Mohammadi 2020 年 9 月 7 日
Generally, the server starts to serve an entity as soon as the entity enters the block. The server tries to forward the entity as soon as the block is done serving the entity. If the service time is the same for all of the entities AND the next block always accept entities, then entities leave the server in a FIFO manner. If either of these two conditions are violated, then the entities may or may not leave the server in FIFO.
  1 件のコメント
Paul
Paul 2020 年 9 月 8 日
Great, thanks Abdolkarim,
That explains the behaviour I'm seeing. Thanks again.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMessages についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by