question

Jungeun W avatar image
0 Likes"
Jungeun W asked Andrew O commented

How can I set total quantity of input ?

Hi

I want to let my queue in the model get fixed amount of input:

first queue to 10 items, second queue to 20 items from 3 sources.

3 sources will distribute 10 items each.

output control.fsm can i setup to control the quantity of flowitem move to specific queue?

but i dont want to let queue get fixed amount of item from specific source, like 4 from source1, 5 from source2...


Thx!

FlexSim 22.1.0
flowiteminput port
output-control.fsm (28.1 KiB)
· 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.

Andrew O avatar image Andrew O commented ·

Hi @Jungeun W, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

If all items are created before any can leave the queues, it should be enough to just set the maximum content of the queues to 10, so they stop accepting input after they received 10 items each.

1665555036781.png

You could also use the batch functionality and have each queue wait until is has received 10 items before it starts to send them further. You can also set that the queue should stop accepting input until it is empty again.

1665555049960.png

Lastly, you could close the input of the queue in its On Entry trigger when its input stat reaches 10. That way items can leave the queue while it is still accumulating.

1665555168701.png

QueueInputLimit_fm.fsm


5 |100000

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