Cancel
Showing results for 
Search instead for 
Did you mean: 

Experiment Manager - output values

Pioneer
Pioneer

In my project, I´m using the experiment manager with the number of MUs entering in the drain as output value - root.OUT.statNumIn.

 

I want to ask if there's any method that I could multiply by 6 the number MU of the output value.

 

Thanks.

 

Best regards,

 

João

3 REPLIES

Re: Experiment Manager - output values

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Joaobarbosa,

 

the simplest and most easily understandable way is to insert an object Variable of type integer with a meaningful name, like Profit. In an endSim method you use the instruction

 

Profit := 6 * OUT.statNumIn;

 

Regards,

Peter

Re: Experiment Manager - output values

Pioneer
Pioneer

Thanks for the answer.

 

In this example I did what you tell, but the variable is always with the value "0". Do you know what is happening?

 

Thanks.

 

Best regards,

 

João

Re: Experiment Manager - output values

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi João,

 

as it looks your method which updates the variable is nowhere called.

 

If you give the method the name 'EndSim' it's automatically called when the simulation reaches the simulation end time. In your case the simulation runs endless, so this won't do it.

 

So you can enter the name of the method in the entrance control of your dismantle station. So whenever a part enters the variable is updated.

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.