I've got some troubles with a Overtake Function. Mostly it works, but in some cases it chrashes.
I used a modification from here (https://community.plm.automation.siemens.com/t5/Pl
if @.collided then wait(@.länge/@.geschwindigkeit); @.move(@.standort,(@.bugpos+@.länge+0.001)); else return; end;
- used in CollisionControl
Every 0.5sec I create an MUs, after some time I get "The Number of suspended Methods exceeded". I know the problem is the wait-Method and there are too many MUs on the track. I suppose the MU can't move to the specific location and the method will execute again and again. Am I right?
Is there an overtake-function without wait or can I deactivate collision on a track?
I created a histogram from a buffer. On the y-axis I've got the simulationtime[%] but my overall simulation takes a lot of more time --> most time my buffer is empty (only need him one time). So my distribution shows only 0 and the other values are very small.
I hope someone can help me
can you upload your model?
The histogram collects data, this slows down the simulation.
"most time my buffer is empty (only need him one time). So my distribution shows only 0 and the other values are very small."
--> this is the way, the histogram works; it shows the frequency of values
|Steffen Bangsow |
freelance simulation specialist
Thank you for your reply.
This is only a section of my model, there are more obstacles. At the beginning MUs can overtake, but after some time there is a error. (This time not supended Methods)