beautypg.com

A.3 single execution at compile, A.4 program control instructions, A.4.1 common program controls – Campbell Scientific CR3000 Micrologger User Manual

Page 481

background image

Appendix A. CRBasic Programming Instructions

481

 

WindVector 
Processes wind speed and direction from either polar or orthogonal sensors. To 
save processing time, only calculations resulting in the requested data are 
performed. 

Syntax 

WindVector(Repetitions, Speed/East, Direction/North,

DataType, DisableVar, Subinterval, SensorType, OutputOpt)

Read More! See Wind Vector

(p. 193).

A.3 Single Execution at Compile

Reside between BeginProg and Scan Instructions.

ESSInitialize 
Placed after the BeginProg instruction but prior to the Scan instruction to 
initialize ESS variables at compile time. 

Syntax 

ESSInitialize

MovePrecise 
Used in conjunction with AddPrecise, moves a high precision variable into 
another input location. 

Syntax 

MovePrecise(PrecisionVariable, X)

PulseCountReset 
An obsolete instruction.  Resets the pulse counters and the running averages 
used in the pulse count instruction. 

Syntax 

PulseCountReset

A.4 Program Control Instructions

A.4.1 Common Program Controls

BeginProg / EndProg 
Marks the beginning and end of a program. 

Syntax 

BeginProg

[program code]

EndProg

Call 
Transfers program control from the main program to a subroutine. 

Syntax 

Call subname (list of variables)