beautypg.com

6 declarations i - single-line declarations, 1 variables, Crbasic example 3. proper program structure – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 85

background image

Section 9. Programming

CRBASIC EXAMPLE 3.

Proper Program Structure

9.6 Declarations I - Single-line Declarations

Public variables, Dim variables, Constants, Units, Aliases, Data Tables and

Subroutines are declared at the beginning of a CRBASIC program.

TABLE.

Rules for Names

(p. 85) lists declaration names and allowed lengths

9.6.1 Variables

A variable is a packet of memory, given an alphanumeric name, through which

pass measurements and processing results during program execution. Variables

are declared either as Public or Dim at the discretion of the programmer. Public

variables can be viewed through software numeric monitors. Dim variables

cannot. Up to 128 public variables can be declared in a CR200(X) program and

up to 48 public variables declared in a CR200 program.

73