Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

how to do with an error with eventcontroller.simtime?

Genius
Genius

Hello, everyone!

 

there is an error exsisting when i create a new model  according to the example of "statistics.spp" wich is modeled by Steffen Bngsow.Namely, the generator starts at 1:00:00, then the method" New_stock" is called and time_to_num(eventController.simTime)/3600 returns 1 in the "New_stock". In fact it returns 0 when i run the model?

The new model and "statistics.spp" are attached ,you can refer to them.

Could you give some advice?

Any help is great appreciated!

4 REPLIES 4

Re: how to do with an error with eventcontroller.simtime?

Phenom
Phenom
where exactly in the new model does "time_to_num(eventController.simTime)/3600 " return Zero ?

Re: how to do with an error with eventcontroller.simtime?

Genius
Genius

Hi,Phenom!

 

yes,you'r right! I have another problem , as is shown in the following picture:I marked it ,after i set the "time scale" at "1/1",several days later it comes back to "1/0.02" when i  create a  new model ,I wonder why this situation happens ,help me ,please!

Good time to you!

123.JPG

Re: how to do with an error with eventcontroller.simtime?

Siemens Phenom Siemens Phenom
Siemens Phenom

You can change the settings for new models in the dialog "File > Preferences".

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

Re: how to do with an error with eventcontroller.simtime?

Genius
Genius

Thank you,sir!