Campbell Scientific CR3000 Micrologger User Manual
Page 482

Appendix A. CRBasic Programming Instructions
482
CallTable
Calls a data table, typically for output processing.
Syntax
CallTable [TableName]
Delay
Delays the program.
Syntax
Delay(Option, Delay, Units)
Do / Loop
Repeats a block of statements while a condition is true or until a condition
becomes true.
Syntax
Do
[{While | Until} condition]
[statementblock]
[
ExitDo
]
[statementblock]
Loop
-or-
Do
[statementblock]
[
ExitDo
]
[statementblock]
Loop
[{While | Until} condition]
EndSequence
Ends the current sequence that started at BeginProg or after a SlowSequence
and accompanying declaration sequences.
Syntax
EndSequence
Exit
Exits program.
Syntax
Exit
For / Next
Repeats a group of instructions for a specified number of times.
Syntax
For
counter = start
To
end [ Step increment ]
[statement block]
[
ExitFor
]
[statement block]
Next
[counter [, counter][, ...]]
If / Then / Else / ElseIf / EndIf
Allows conditional execution, based on the evaluation of an expression. Else is
optional. ElseIf is optional. Note that EndSelect and EndIf call the same
function).
Syntax
If
[condition]
Then
[thenstatements]
Else
[elsestatements]