cancel
Showing results for 
Search instead for 
Did you mean: 

How to count thoughput

Experimenter
Experimenter

I have rwo sources in my model . Source1 start from 00:00 to 02:00 . Source 2 start from 2:00 to 4:00.

 

I want to know how much entity comes from source1 and source2.

 

I have set entity1 and entity2 at class library and construct a method at Drain>control>entrance.

The MU selection of source1  is constant and MU is .MUS.entity1 but it doesnt work.

 

Drain>control>entrance

 

if @.name="entity1" then

Throughput1:=Throughput1+1

elseif @.name="entity2" then

Throughput2:=Throughput2+1

end;

 

 

 

 

2 REPLIES

Re: How to count thoughput

Solution Partner Genius Solution Partner Genius
Solution Partner Genius
Have you tried reading the attribute "StatNumOut" for each Source?

Source1.StatNumOut
Source2.StatNumOut

They will give you the number of MUs that have exited the source.

Re: How to count thoughput

Genius
Genius

Hello,

 

Please find the attached images to activate Display Panel. Where you can see how much entities produced by the source without Programming.

 

Thanks & Best Regards,

Abhilash Sridhar.

Thanks & Best Regards,
Abhilash Sridhar
Mercedes Benz R&D India, Daimler AG