07.01.2015 Views

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 9. Programming<br />

CRBASIC EXAMPLE 3.<br />

Proper Program Structure<br />

9.6 Declarations I - Single-line Declarations<br />

Public variables, Dim variables, Constants, Units, Aliases, Data Tables and<br />

Subroutines are declared at the beginning of a CRBASIC program. TABLE.<br />

Rules for Names (p. 85) lists declaration names and allowed lengths<br />

9.6.1 Variables<br />

A variable is a packet of memory, given an alphanumeric name, through which<br />

pass measurements and processing results during program execution. Variables<br />

are declared either as Public or Dim at the discretion of the programmer. Public<br />

variables can be viewed through software numeric monitors. Dim variables<br />

cannot. Up to 128 public variables can be declared in a <strong>CR200</strong>(X) program and<br />

up to 48 public variables declared in a <strong>CR200</strong> program.<br />

73

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

Saved successfully!

Ooh no, something went wrong!