Specifications

10-1
Section 10. CRBASIC Programming
Instructions
Read more! Parameter listings, application information, and code
examples are available in CRBASIC Editor Help. CRBASIC Editor is
part of PC400, LoggerNet, and RTDAQ.
Select instructions are explained more fully, some with example code, in
Section 11 Programming Resource Library. Example code is throughout
the CR1000 manual. Refer to the table of contents Example index.
10.1 Program Declarations
Alias
Assigns a second name to a variable.
Syntax
Alias [variable] = [alias name]
AngleDegrees
Sets math functions to use degrees instead of radians.
Syntax
AngleDegrees
AS
Sets data type for DIM or PUBLIC variables.
Syntax
Dim [variable] AS [data type]
Const
Declares symbolic constants for use in place of numeric entries.
Syntax
Const [constant name] = [value or expression]
ConstTable … EndConstTable
Declares constants that can be changed using the datalogger keyboard or
terminal ā€˜C’ option. The program is recompiled with the new values when
values change.
Syntax
ConstTable
[constant a] = [value]
[constant b] = [value]
[constant c] = [value]
EndConstTable
Dim
Declares and dimensions private variables. Dimensions are optional.
Syntax
Dim [variable name (x,y,z)]