Issue to set simulation to end on last item in the sink

howy3508
Not applicable
4 Views
2 Replies
Message 1 of 3

Issue to set simulation to end on last item in the sink

howy3508
Not applicable

[ FlexSim 24.0.2 ]

I want the simulation to end when the last item enter the sink. Using the similar code from this post but I am not able to stop the simulation.

How to end simulation run after last flow item being processed? - FlexSim Community

1714571846199.png


Also, the 3rd shift operator never get used. Am I setting this up correctly?


Issue - Process to end, 3rd shfit operator.fsm

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

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

In an entry trigger:

if (current.stats.input.value==8)
      endreplication(0);


Operator3 doesn't get a job since it is stopped the whole time. When you stop a dispatcher it will also stop its outobjects. Since you have timetables for the dispatcher and the operator that overlap there is no time when both timetables are 'on shift'. Remove the timetable you don't need, or alter them so that there is a period where no scheduled down time is active on either of them.

0 Likes
Message 3 of 3

jeanette_fullmer88DK3
Autodesk
Autodesk

Hi @Howard, was Jason Lightfoot'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