필터 지우기
필터 지우기

How do can I use the entity enable gate and have the entities released sequentially instead of instantly?

조회 수: 4 (최근 30일)
I have an entity gate in my model where is enabled or disabled from the control port. However, once the gate is enabled, the entities that were on hold at the gate are all released at the same time instant. Is it possible to release the entities sequentially after eachother using the enable gate. And if it is not possible how can i model this using other blocks?
I have attached a picture that shows the output of the entities at the enable gate.

답변 (1개)

arushi
arushi 2024년 7월 25일
Hi Tarnim,
I understand from your issue that the Entity Gate in your model releases all the entities instantly.
This can be achieved by assigning priorities to each of the entities. The priority can be another variable assigned to each of the entities, or the time of creation of the entity. A ‘Priority Queue’ or an ‘Entity Server’ can be used for this, as shown in the below example:
Hope this helps.

카테고리

Help CenterFile Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by