Specifications

Section 9. Program Control Instructions
9-5
Parameter
& Data Type
Enter
DelayOption
Constant
Code
0
1
Result
Delay will affect the measurement task sequence.
Processing will continue to take place as needed in the
background. When this option is chosen, the Delay
instruction must not be placed in a conditional statement.
Delay will affect processing. Measurements will continue as
called for by the task sequencer.
Delay
Constant
The numeric value for the time delay.
Units
The units for the delay.
Constant
Alpha
Code
Numeric
Code
Units
USEC 0 microseconds
MSEC 1 milliseconds
SEC 2 seconds
MIN 3 minutes
Do … Loop
Repeats a block of statements while a condition is true or until a condition
becomes true.
Syntax 1
Do [{While | Until} condition]
[statementblock]
[Exit Do]
[statementblock]
Loop
Syntax 2
Do
[statementblock]
[Exit Do]
[statementblock]
Loop [{While | Until} condition]
The Do...Loop statement has these parts:
Part Description
Do Must be the first statement in a Do...Loop control structure.
While Indicates that the loop is executed while condition is true.
Until Indicates that the loop is executed until condition is true.
condition Numeric expression that evaluates true (nonzero) or false (0
or Null).
statementblock Program lines between the Do and Loop statements that are
repeated while or until condition is true.
Exit Do Only used within a Do...Loop control structure to provide
an alternate way to exit a Do...Loop. Any number of Exit
Do statements may be placed anywhere in the Do...Loop.