beautypg.com

Appendix a. crbasic programming instructions, A.1 program declarations – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 451

background image

451 

 

Appendix A. CRBasic Programming

Instructions

Read More! Parameter listings, application information, and code examples are
available in CRBasic Editor

(p. 109)

Help.

 

All CR800 CRBasic instructions are listed in the following sub-sections. Select
instructions are explained more fully, some with example code, in Programming
Resource Library

(p. 151).

Example code is throughout the CR800 manual. Refer

to the table of contents Example index.

A.1 Program Declarations

AngleDegrees 
Sets math functions to use degrees instead of radians. 

Syntax 

AngleDegrees

PipelineMode 
Configures datalogger to perform measurement tasks separate from, but 
concurrent with, processing tasks. 

Syntax 

PipelineMode

SequentialMode 
Configures datalogger to perform tasks sequentially. 

Syntax 

SequentialMode

SetSecurity 
Sets numeric password for datalogger security levels 1, 2, and 3. Executes at 
compile time. 

Syntax 

SetSecurity(security[1], security[2], security[3])

StationName 
Sets the station name internal to the CR800. Does not affect data files produced 
by support software.  See sections CRBasic example Miscellaneous Features

 (p. 244) 

demonstrates use of several CRBasic features: data type, units, names, event 
counters, flags, data intervals, and control.

 

and CRBasic example Conditional 

Output

 (p. 252

demonstrates programming to output data to a data table 

conditional on a trigger other than time.

.

 

Syntax 

StationName(name of station)

Sub / ExitSub / EndSub 
Declares the name, variables, and code that form a Subroutine. Argument list is 
optional. Exit Sub is optional.