How to close and open the output port of the queue ?

How to close and open the output port of the queue ?

akkache_a
Not applicable
56 Views
2 Replies
Message 1 of 3

How to close and open the output port of the queue ?

akkache_a
Not applicable

[ FlexSim 18.1.2 ]

Hello,

I have just started using Flexsim, I would like to mak a logic between two queues (Queue 1 and Queue 2).

when the current content of the Queue 1 greater than 0, action close output port of the Queue 2

when the current content of the Queue 1 equal 0, action open output port of the Queue 2.

I have tried but the model does not work. Thank you, in advance for your valuable assistance.

0 Likes
Accepted solutions (1)
57 Views
2 Replies
Replies (2)
Message 2 of 3

jeff_nordgren
Not applicable
Accepted solution

@AKKACHE A,

You had everything right except one small detail. In Queue1 in the OnExit trigger, you are testing for no flowitems in the Queue. Problem is, is that when the OnExit trigger fires, it still has the flowitem in the queue, hasn't exited yet. So you need to test for 1 flowitem (last in the queue) being in the queue. I made that change in the attached model. Take a look at the model and see if it is doing what you wanted it to do.

Thanks.

akkache-test-jn1.fsm

Message 3 of 3

akkache_a
Not applicable

It is perfectly correct, Thanks.

0 Likes