Showing results for 
Search instead for 
Do you mean 
Reply

How to count thoughput

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

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

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