Cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop simulation when last entity leaves the drain

Creator
Creator

Ive been working on a simulation, and need to now the total time it takes a certain amount of entities to go through the system. So far the simulation has stopped automaticly when the last entity goes to the drain, but after adding a shiftcalendar, the simulation continiues forever.

 

Is there an easy way to prevent this?

2 REPLIES

Re: How to stop simulation when last entity leaves the drain

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
Hello Christian,

You could check the number of MUs in your model (e.g. Frame.numMU). If none is left, you can stop the EventController (EventController.stop). The Drain may be a good place to do this check.

Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com

Re: How to stop simulation when last entity leaves the drain

Creator
Creator

Thank you very much