question

Horn H avatar image
0 Likes"
Horn H asked Horn H commented

Stop running when there are no item in Queue

Hi!

Attached model experiment.fsm ,I want to stop running simulation when the boxes in Queue are processed completely (there're no more items at Queue). How can I achieve this?

Thanks,

FlexSim 19.1.1
stop running model
experiment.fsm (943.0 KiB)
5 |100000

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

1 Answer

Braydn T avatar image
0 Likes"
Braydn T answered Braydn T commented

@Horn H

Take a look at this question here:

How to end simulation when a queue is empty

· 13
5 |100000

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

Horn H avatar image Horn H commented ·

@Braydn T I try doing it by following the solution in answer you suggested.That works but it has effect whole model,logic that I set in my model has lost.What's wrong with this ? Here is my attempt end-simulation.fsm

0 Likes 0 ·
end-simulation.fsm (210.4 KiB)
Braydn T avatar image Braydn T Horn H commented ·

I still see all the data saved in the statistics collectors. What logic is lost?

0 Likes 0 ·
Horn H avatar image Horn H Braydn T commented ·

@Braydn TThe fourth PF(Factory Truck) doesn’t work ,and number of minutes in running are increased,standBy time that I stored in Statistics collector are also incorrect,whole model goes vastly different. I want the model works as simple ,and just need end simulation when boxes in queue are processed completely.

0 Likes 0 ·
Show more comments
Show more comments