04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A. CRBasic Programming<br />

Instructions<br />

A.1 Program Declarations<br />

Read More! Parameter listings, application information, and code examples are<br />

available in CRBasic Editor (p. 109) Help.<br />

All <strong>CR1000</strong> CRBasic instructions are listed in the following sub-sections. Select<br />

instructions are explained more fully, some with example code, in Programming<br />

Resource Library (p. 151). Example code is throughout the <strong>CR1000</strong> manual. Refer<br />

to the table of contents Example index.<br />

AngleDegrees<br />

Sets math functions to use degrees instead of radians.<br />

Syntax<br />

AngleDegrees<br />

PipelineMode<br />

Configures datalogger to perform measurement tasks separate from, but<br />

concurrent with, processing tasks.<br />

Syntax<br />

PipelineMode<br />

SequentialMode<br />

Configures datalogger to perform tasks sequentially.<br />

Syntax<br />

SequentialMode<br />

SetSecurity<br />

Sets numeric password for datalogger security levels 1, 2, and 3. Executes at<br />

compile time.<br />

Syntax<br />

SetSecurity(security[1], security[2], security[3])<br />

StationName<br />

Sets the station name internal to the <strong>CR1000</strong>. Does not affect data files produced<br />

by support software. See sections CRBasic example Miscellaneous Features (p. 243)<br />

demonstrates use of several CRBasic features: data type, units, names, event<br />

counters, flags, data intervals, and control. and CRBasic example Conditional<br />

Output (p. 251) demonstrates programming to output data to a data table<br />

conditional on a trigger other than time..<br />

Syntax<br />

StationName(name of station)<br />

Sub / ExitSub / EndSub<br />

Declares the name, variables, and code that form a Subroutine. Argument list is<br />

optional. Exit Sub is optional.<br />

473

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!