12-06-2017 01:18 PM
Hello everyone.
Is it possible to automatically end simulation in eventcontroller when my Shift Calendar is active and my model stops working? I mean that without Shift Calendar simulation process ends automatically and gives me results when all MUs are in Drain. But when I add shift calendar, eventcontroller works indefinitely. I dont want to set simulation time, but ends it automatically when all MU's are in drain.
Thank you in advance for any help.
Solved! Go to Solution.
12-06-2017 03:44 PM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
12-06-2017 05:58 PM - edited 12-06-2017 06:02 PM
Thank You. But i don't understand how "if @.class.numChildren = 1" works. What if I have different MUs? For example I have 100 different MUs in my simulation. I tried:
if drain.nummu=100 eventController.end:=eventController.simTime+0.1 end;
but it doesn't work. How can I stop a simulation when a certain number of MUs get to the drain?
12-07-2017 01:57 PM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
12-07-2017 08:17 PM
06-07-2018 03:55 AM
Hi,
I have the same problem but I can not use Method programing. Can someone help me what I should write there? Below my simulation. I'd like stop simulation when 20 elements "Jacket" go to drain1.
06-07-2018 04:24 AM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-07-2018 04:35 AM
Yes.
From Assembly Station "Station3D" exit MUs "Jacket" and it is final product.
06-07-2018 04:36 AM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-07-2018 04:40 AM
I forgot to put Method in tab controls in Drain1. Now it's working. Thanks!