question

AKKACHE A avatar image
0 Likes"
AKKACHE A asked AKKACHE A commented

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

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.

FlexSim 18.1.2
queue content
test.fsm (23.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered AKKACHE A commented

@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


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

AKKACHE A avatar image AKKACHE A commented ·

It is perfectly correct, Thanks.

0 Likes 0 ·