Cancel
Showing results for 
Search instead for 
Did you mean: 

SHOW STATISTICS OF BLOCKED Mu

Pioneer
Pioneer

Hello everyone,

I need help to calculate the time that Mu is waiting (in object station) move to the track. Mu  can move to track by @.insert (track,70) see method move; only if  PositionIsFree=true. I cannot use the Resource Statistics of station because it parallel proc object and the mu can be waiting and the station is not blocked. Attached Model that showing the problem.

Regards, 

SG

3 REPLIES

Re: SHOW STATISTICS OF BLOCKED Mu

Legend
Legend

   Hello SG, 

So, you would like to calculate the cumulated time (or a percentage) when the MU cannot move (because the position is not free). Right ? 

 

To do that you can create a global variable on your frame and call it Cumulate_Blocking_Time

Your move method will be :

 
Generator.active:=true;

local t0 time := eventController.Simtime ; 
waituntil posIsFree=true prio 1;
posIsFree:=false;

local t1 time := eventController.Simtime ; 

Cumulate_Blocking_Time := Cumulate_Blocking_Time + (t1-t0) ; 
@.insert(track,70);
Generator.active:=false;

So, I hope it helps.
Omar

Re: SHOW STATISTICS OF BLOCKED Mu

Pioneer
Pioneer

 

Hello Omar,


It would be very helpful

Thank you

SG

Re: SHOW STATISTICS OF BLOCKED Mu

Legend
Legend
GREAAAAAAAAAAAT

Omar