Cancel
Showing results for 
Search instead for 
Did you mean: 

Count MUs at drain

Experimenter
Experimenter

Hello,

is it possible to count the MUs that income at the drain?

i tried it with a Method  at Drain control entranceand and a global variable.

 

is
do
count:= count+1;

end;

 

but it doesn`t coutn the MUs.

or has it to be something like this

is
do

              if (income MU in Drain) then
count:= count+1;

end;

 

2 REPLIES

Re: Count MUs at drain

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
the drain itself collects a lot of statistics, the number of MUs is

drain.statNumIn

If count is a global variable and the method is the entrance control of the drain, this should also work:

is
do
count:= count+1;

end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Count MUs at drain

Creator
Creator

Hello I don't know if this ist what you wanted but you can see the number of MUs at the Drain with the "Display".

User Interface -> Display -> Path ->select object Drain and statNumIn

You can also fill in the comment window with what you want to show.