i'm trying to use the shift calendar (highligthed) in my model as can be seen below:
The problem lies in the fact that if i use 2 shifts (that not covers the whole day) the simulation end before it's finished; this can be easily seen because "MatOrder" (highligthed) is the total amount of articles that has to be done and "ArticleTotOut" (highligthed) the total article passed by drain (so the one actually produced).
As you can see the number are not equal and this is easy to be noticed because there is a MU stucked in the "Qualita" (highligthed) frame.
For some reason the "endsim" method (highligthed) is called (i know that because i get a pop up window any time that is triggered); the only reason that i can think is that the suspended method is empty and everything stops in the night when there is no shift so the endsim method, maybe, trigger itself because nothing is happening but this is just an idea.
Thanks for your help.
Solved! Go to Solution.
yes; i saw one of your older post here in the forum and actually i've two version (both working)
Second version (actually used)
if prodottoFinito.StatNumIn + root.Qualita.ScrapStore.NumMU = MatOrder eventController.end:=eventController.simTime+0.001 end
if (ProdottoFinito.StatNumOut + root.Qualita.ScrapStore.NumMU)+1 = MatOrder eventController.end:=eventController.simTime+0.001 end