question

Aljoša Jamnik avatar image
0 Likes"
Aljoša Jamnik asked Julie Weller commented

Empty Queue after X seconds

Greetings,

In my model, I don't know how to empty the queue "Prazni vozički" after 8 hours. The only requirement is that the queue gets fully emptied once at this time (8 hours into the shift or in my case 16:00). Any suggestions are much appreciated!

Thank you and best regards,

Aljoša

Empty queue.fsm

FlexSim 23.1.2
queueempty
empty-queue.fsm (23.0 MiB)
· 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.

Julie Weller avatar image Julie Weller commented ·
Hi @Aljoša Jamnik! Do you want the items in the queue to just be deleted or to go to the output queues when they're cleared?
1 Like 1 ·
Aljoša Jamnik avatar image Aljoša Jamnik Julie Weller commented ·
Both are OK. But I do like the second one a bit more.
0 Likes 0 ·

1 Answer

Julie Weller avatar image
1 Like"
Julie Weller answered Julie Weller commented

Ok @Aljoša Jamnik! That's pretty simple to implement! I added a source that created a token at 16:00:00 then ran a subflow that systematically moved objects from the queue to the output queues (I did a 50/50 split but you can choose or you could replace it with a delete object.

1687884861327.pngThe trickiest part is getting the subnodes part right, you can look at the model and see how I referenced the queue.

Here's the model:

empty-queue_1.fsm

Does that answer your question?


1687884861327.png (13.5 KiB)
empty-queue-1.fsm (148.5 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.

Aljoša Jamnik avatar image Aljoša Jamnik commented ·
Thank you Julie for the very quick and precise answer! This solves my problem!
0 Likes 0 ·
Julie Weller avatar image Julie Weller Aljoša Jamnik commented ·
I'm glad! Good luck on your model!
1 Like 1 ·