Info

This question is closed. Reopen it to edit or answer.

Strange behavior gate by adding a queue

2 views (last 30 days)
Loek Vroomen
Loek Vroomen on 1 Feb 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
I have a question. I made a very simple simevents model.
The goal of this model is batching entities. I used a gate which will be enabled if the batch size is reached.
In my attachment the production line is shown. Both production lines are similar, only the upper production line uses an extra queue behind the gate.
As can be seen in the attachment, the gate works in the lower line without any complications. Scope6 shows a perfect queuing behavior. If the batch size is reached, 50 entities pass and then the gate is disabled again until the next batch is created.
But, the upper production line has an error. The only difference is that is added a infinite queue behind the gate. The rest of the line is copied. By adding this queue, the batching behavior is completely wrong. The first batch is created, the gate is disabled. However the next entity also passes the gate. Therefor the batching process is wrong.
Can somebody help me with this problem, or tell me why this phenomenon occurs .
Thanks A lot!
Greetings Loek

Answers (1)

Kevin Chien
Kevin Chien on 8 Jun 2017
I downloaded the model and ran the simulation - both production lines returned the same results. Sometime scopes present values with different layouts, maybe you want to adjust it for comparison.

Community Treasure Hunt

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

Start Hunting!