필터 지우기
필터 지우기

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 CenterFile Exchange에서 SimEvents에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by