Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Simulation time syntax

Simulation time syntax

Does anyone know how to use start time and stop time within the modelica editor? The idea is to manage the simulation time within the program instead of doing it manually from the setup dialog..

Re: Simulation time syntax

You can either save the annotation in there using the setup dialog or use the experiment annotation.

Code:

annotation(experiment(StopTime=3));

Re: Simulation time syntax

sjoelund.se, thanks.  I had tried that before but forgot to translate.

There are 0 guests and 0 other users also viewing this topic
You are here: