Processor Input with Empty Queue

Processor Input with Empty Queue

ellalayton
Not applicable
8 Views
3 Replies
Message 1 of 4

Processor Input with Empty Queue

ellalayton
Not applicable

[ FlexSim 23.2.0 ]

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?

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

joerg_vogel_HsH
Mentor
Mentor
0 Likes
Message 3 of 4

moehlmann_fe
Observer
Observer
Accepted solution

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

0 Likes
Message 4 of 4

natalie_white
Not applicable

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