I analog a simple model in the attachment.There is a blocking in the line when the model is running for sevral minutes.Here ,I will describe the model in a little detail. the model consists one line ,3 buffers and 3 machines.there is 3 sensors to control the "mus" to the specified positions with the method.
My problem is that :when the buffer is full at a certain time ,the line is blocking .After the remains of buffer is used over ,the modes is stopped. I want to the model to run all the time unless I stop it. I tried on to control it with the attribute "entrancelocked" of line,but it failed.
What should I do? Any help is great appreciated!
Solved! Go to Solution.
one way could be to send ony parts from the source, if you can store them (e.g. calculate the space in the buffers) e.g. as exitcontrol of the source:
waituntil L0.numMU< (b1.capacity+b2.capacity+b3.capacity-b1.numMu-b2.numMu-b3.numMu) @.move
freelance simulation specialist
According to your directions,I add the method into the exitcontrol of the source.Now,the model runs smoothly.
Your feedback is always rapid and effective !
Give my best regards to you!