question

David AC avatar image
0 Likes"
David AC asked Ben Wilson commented

Send items to the first empty queue

queue_test.fsm

I need to send items from the Separator to the 4 queue. But I want to send it only if the queue is empty and wait if the 4 queue are with one element. I need only one element in every queue and wait if the queue have one element... I was trying with process flow and zones....

thanks!

FlexSim 21.0.1
flexsim 21.0.1
queue-test.fsm (74.1 KiB)
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @David AC,

It looks like this question may be part of a homework assignment or academic project. The professors who assign simulation modeling exercises using FlexSim expect that the academic integrity of their assignments will be maintained. In addition, we are supportive of Honor Codes or Pledges that regulate the behavior surrounding academic assignments.

I recommend reading our best practices page on the subject, which includes some resources that you should find helpful as you use FlexSim for academic purposes. I also highly recommend Dr. Allen Greenwood’s FlexSim Primer, which was written specifically for students and professors.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @David AC, was jason.lightfoot's answer helpful? If so, please click the red "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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

Set the capacity of the queues to one.

· 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.

David AC avatar image David AC commented ·

Hi Jason,

thanks for answer!

But the thing is: in the separator I am separating one box into different elements dipending on a global table, and these elements are the ones I am storing in the queue. I need that the system wait all these block of elements finish to send more to that queue...


thanks!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ David AC commented ·

What you described initially sounds like this model but I expect we've lost something in the communication.

queue-test_jl.fsm

0 Likes 0 ·
queue-test-jl.fsm (64.9 KiB)