Please enable JavaScript to view this site.

Vensim Help

TIMER commands are used to create and manage Timers without having the need for a Timer control and also to manage Timers created by a Time control.

TIMER>CREATE|timername

Creates a new timer with the name specified. The timer will exist as long as the screen it is created on remains active. When the screen is closed the timer will be deleted unless it was marked permanent. When a timer is created it has no actions and is not armed (it is just an empty timer).

TIMER>PERMANENT|timername

Marks the names timer as permanent. A permanent timer will persist until it is deleted with a TIMER>DELETE command or the application is closed.

TIMER>DELETE|timername

Deletes the named timer. The actions associated with the timer are not executed.

TIMER>KILL|timername

Disarms the current timer. No actions are performed and none will be unless TIMER>EXECUTE is called or the timer is set again using TIMER>SET. The timer can be rearmed with a TIMER>SET command.

TIMER>SET|timername|duration

Sets the current timer to go off after duration. When the timer goes off the command associated with it, if any, will be executed and the SHIFTTO Screen, if any, will be entered.

TIMER>COMMAND|timername|command

Sets the command to be executed with the timer goes off or is executed with a call to TIMER>EXECUTE. You can only assign a single command to a timer.

TIMER>SHIFTO|timername|screen

Sets the Screen to shift to when the timer executes.

TIMER>EXECUTE

Causes the timer to execute without waiting for its count down to complete.