フィルターのクリア

Entity Output Switch changes results based on output label

3 ビュー (過去 30 日間)
Ben Freedman
Ben Freedman 2022 年 2 月 14 日
コメント済み: Ben Freedman 2022 年 2 月 14 日
Hello,
I have a SimEvents model with an Entity Output Switch with two outputs, called 1:"OUTPT" and 2:"OUTPI" that go to different parts of the model. I have the switching behaviour of the switch set to "First port that is not blocked" with the idea that entities will be released to the first path which can accept them independent of the number or order of the outputs. I found my model gives very different output if i change which output is attached to 1 and which is attached to 2 in the image below Shouldn't this switching criteria guarantee symmetry of outputs? What could account for this behaviour?
  1 件のコメント
Ben Freedman
Ben Freedman 2022 年 2 月 14 日
Does the switch bias towards the last output used?
If 2 is blocked, the system will output to 1. If 2 becomes unblocked, that port still won't be chosen until 1 is blocked. This is what i see when my system creates a backlog at port 2 until port 1 is exhausted. Switching the port order biases the first entry when both ports are unblocked.
What i really want is control of the switch so that the output order is defined by earliest available sample downstream. My backup is to have each downstream queue send a message when it is available to build a "schedule array". The output switch would then direct entities according to the schedule.

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by