CR200/CR200X Series Dataloggers - Campbell Scientific
CR200/CR200X Series Dataloggers - Campbell Scientific
CR200/CR200X Series Dataloggers - Campbell Scientific
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Section 10. CRBASIC Programming Instructions<br />
10.4 Program Control Instructions<br />
10.4.1 Common Controls<br />
BeginProg … EndProg<br />
Mark the beginning and end of a program.<br />
Syntax<br />
BeginProg<br />
Program Code<br />
EndProg<br />
Call<br />
Transfers program control from the main program to a subroutine.<br />
Syntax<br />
Call subname<br />
CallTable<br />
Calls a data table, typically for output processing.<br />
Syntax<br />
CallTable [TableName]<br />
Delay<br />
Delays the program.<br />
Syntax<br />
Delay (Delay, Units)<br />
Do … While ... Until ... ExitDo ... Loop<br />
Repeats a block of statements while a condition is true or until a condition<br />
becomes true.<br />
Syntax<br />
Do [{While | Until} condition]<br />
[statementblock]<br />
[ExitDo]<br />
[statementblock]<br />
Loop<br />
-or-<br />
Do<br />
[statementblock]<br />
[ExitDo]<br />
[statementblock]<br />
Loop [{While | Until} condition]<br />
For ... To ... Step ... ExitFor ... Next<br />
Repeats a group of instructions a specified number of times.<br />
Syntax<br />
For counter = start To end [ Step increment ]<br />
[statementblock]<br />
[ExitFor]<br />
[statementblock]<br />
Next [counter [, counter][, ...]]<br />
96