Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Timer Events

Draft MDC Standard

7.1.3.3.1 Timer Events:

^$Event( expr1 V "EVENTDEF" , expr2 V "TIMER" )

^$Event( "EVENTDEF", "TIMER" ) provides information about the characteristics of the TIMER class of events. Let timerid be the value of a valid evid for a TIMER event. All of the nodes below must be set to establish the timer. If any of these nodes are killed, no timer event occurs.

Timer Event Interval:

^$Event( expr1 V "EVENTDEF" , expr2 V "TIMER" , timerid , expr3 V "INTERVAL" ) = intexpr

This node identifies (if positive) the running time remaining before the timer event (in seconds). This value counts down continuously at a rate of 1 per second. While the value of this node is greater than 0, the value of the corresponding node ^$Event( "EVENTDEF", "TIMER", timerid , "ACTIVE" ) (see below) evaluates as a tvexpr to 1.

Timer Event Interval Auto-Reset:

^$Event( expr1 V "EVENTDEF" , expr2 V "TIMER" , timerid , expr3 V "AUTO" ) = intexpr

This node is the value set into ^$Event( "EVENTDEF", "TIMER", timerid , "INTERVAL" ) when it is decremented from a positive value to a non-positive value.

Timer Event State:

^$Event( expr1 V "EVENTDEF" , expr2 V "TIMER" , timerid , expr3 V "ACTIVE" ) = tvexpr

This node identifies the state of the timer. If the node evaluates as a tvexpr to 1, the timer is active (running). If the node evaluates as a tvexpr to 0, the timer is inactive.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 18-Nov-2023, 10:22:44.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)