question

Hubert avatar image
0 Likes"
Hubert asked Hubert commented

How can input port be open only when queue is empty ?

Model warehouse.fsm

Hello,

I can't seem to find a solution for opening the input port from the source to the first queue only when the queue is empty. I have set the trigger on the queue exit port to close the input port and that's how it should be, but I would still like to set the input port to open when all items are taken from the queue.

Please Help zrzut-ekranu-2023-12-14-141159.png

FlexSim 24.0.0
triggersinput port
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Hubert commented

Getting the timing right for opening/closing ports can sometimes be a bit finicky. If you use the Entry/Exit trigger, a 0s delay (by sending a message and only closing/opening the port in the message trigger) can often help.

model-warehouse-fm.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.

Hubert avatar image Hubert commented ·
thank you very much
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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