question

Ella Layton avatar image
0 Likes"
Ella Layton asked Natalie White commented

Processor Input with Empty Queue

I have a source outputting to 2 queues based on percentage. These two queues output to a single processor also by percentage. This setup works exactly how I need it to until one of the queues is empty. When one of the queues reaches a content of 0, the processor stops pulling input from either queue. How do I make the processor pull 100% from one queue after the second queue is empty?

FlexSim 23.2.0
queuepull
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
0 Likes 0 ·
Natalie White avatar image Natalie White commented ·

Hi @Ella Layton, 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

You can edit the code of the By Percentage option. After the port number has been determined, check if the respective queue actually contains an item.

If not, you return 0 (pull from any port). If yes, you return the port number.

by-percentage-if-available-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.

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.