Cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a method once

Valued Contributor
Valued Contributor

Hi guys,

my model requires to call a method (let's call it method 1) with the init method. The method1 must be called only one time in the whole simulation and I cannot find any information on how to do it.

 

Can you suggest a way?

Thanks

3 REPLIES

Re: Calling a method once

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Alessandro,

 

if you call the method from the Init method you should be fine, since the Init method is only called once for a simulation run.

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.

Re: Calling a method once

Solution Partner Genius Solution Partner Genius
Solution Partner Genius
You can call method1 within init. like

is
do
method1;
end;

Re: Calling a method once

Valued Contributor
Valued Contributor
Awesome!