beautypg.com

Appendix a. keywords and predefined constants – Campbell Scientific CR9000X Measurement and Control System User Manual

Page 407

background image

Appendix A. Keywords and Predefined
Constants

Several words are reserved for use by CRBASIC. These words are not case sensitive and
cannot be used as variable or table names in a program. Predefined constants include
some instruction names, as well as valid alphanumeric names for instruction parameters.
In general, instruction names should not be used as variable, constant, or table names in a
datalogger program, even if they are not specifically listed as a predefined constant.

If a user programmed variable happens to be a keyword or predefined constant, a runtime
or compile error will occur. To correct the error, simply change the variable name by
adding or deleting one or more letters, numbers, or the underscore (_) from the variable
name, then recompile and resend the program.

The following is a list of keywords and predefined constants in CRBasic. It is possible to
use a keyword as part of a variable name if there are additional letters preceding or
following the letters that make up the keyword.

AbortScan

program control

ABS function
ACOS

function

Alias

declaration

AM25T

measurement

AngleDegrees

declaration

AO4

measurement

AND operator
ASCII_ function
ASIN function
As declaration
ATN function
ATN2 function
AVE function
Average output

processing

AvgRun

processing

AvgSpa

processing

Battery measurement
BeginBurstTrigger program control
BeginProg

program control

BiasComp

CSI Calibration

Boolean

= 17, predefined constant

Break

program control

BrFull measurement
BrFull6W measurement
BrHalf measurement
BrHalf3W measurement
BrHalf4W measurement
CalFile

program control

Calibrate

calibration

Call

program control

CallTable

program control

CanBus

measurement

CardFlush

program control

CardOut output

processing

Case

program control

Ceil function
CD16AC

measurement

Checksum function
CheckPort function
CHR function
ClockChange function
ClockSet

program control

Const

declaration

ConstTable

declaration

COS

function

COSH

function

ContinueScan

program control

Covariance

output processing

COVSpa

processing

CR1000

predefined constant

CR3000

predefined constant

CR5000

predefined constant

CR800

predefined constant

CR9000X

predefined constant

CRD

program control

CS150

measurement

CS7500

measurement

CSAT3

measurement

CSAT3A

measurement

CSGN

function

Data

processing

A-1