ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Running procedures > Errors and warnings while running a procedure > Warning: The timer resolution set for the procedure was invalid

Warning: The timer resolution set for the procedure was invalid

Description

Within an ANY-maze procedure, there is a time resolution of approximately 50ms. This will usually be sufficient, but if you need to wait for elapsed times that are less than this (for example, to toggle the state of an I/O output switch), then you will need to use the Set timer resolution action to alter the timer resolution for this procedure.

Valid values for the timer resolution are between 1ms and 60s; this error is generated if you try to set the timer resolution to anything outside of that range.

If you pass a numerical value without any units to the Set timer resolution action, ANY-maze will assume that this value is in seconds.

Example

If you need your switch to be toggled for 10ms, you'd need to change the resolution to 10ms or less, as follows:

  

  

Figure 1. This procedure alters the time resolution before the start of the test, and then uses it to ensure a small time interval for the toggling of an output switch.

Note that changing the timer resolution in this way only affects the procedure that it is used in, and not any other procedures. However, it does mean that the procedure needs to process its statements much more often, using more of the computer's processing power, so it's not a good idea to alter the resolution unless you really need to (or are advised to do so by ANY-maze Support).

More information

If you pass an invalid timer resolution to the Set timer resolution action, it will be ignored and the timer resolution will be left at its previous valid value.

See also:

 •Errors and warnings while writing a procedure 
 •Errors and warnings while running a procedure 
 •Actions available to a procedure 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0560