beautypg.com

A.3 single execution at compile, A.4 program control instructions, A.4.1 common program controls – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 457

background image

Appendix A. CRBasic Programming Instructions

457

 

A.3 Single Execution at Compile

Reside between BeginProg and Scan Instructions.

ESSInitialize 
Placed after the BeginProg instruction but prior to the Scan instruction to 
initialize ESS variables at compile time. 

Syntax 

ESSInitialize

MovePrecise 
Used in conjunction with AddPrecise, moves a high precision variable into 
another input location. 

Syntax 

MovePrecise(PrecisionVariable, X)

PulseCountReset 
An obsolete instruction.  Resets the pulse counters and the running averages 
used in the pulse count instruction. 

Syntax 

PulseCountReset

A.4 Program Control Instructions

A.4.1 Common Program Controls

BeginProg / EndProg 
Marks the beginning and end of a program. 

Syntax 

BeginProg

[program code]

EndProg

Call 
Transfers program control from the main program to a subroutine. 

Syntax 

Call subname (list of variables)

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.