04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - 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.

Appendix A. CRBasic Programming Instructions<br />

WindVector<br />

Processes wind speed and direction from either polar or orthogonal sensors. To<br />

save processing time, only calculations resulting in the requested data are<br />

performed.<br />

Syntax<br />

WindVector(Repetitions, Speed/East, Direction/North,<br />

DataType, DisableVar, Subinterval, SensorType, OutputOpt)<br />

Read More! See Wind Vector (p. 188).<br />

A.3 Single Execution at Compile<br />

Reside between BeginProg and Scan Instructions.<br />

ESSInitialize<br />

Placed after the BeginProg instruction but prior to the Scan instruction to<br />

initialize ESS variables at compile time.<br />

Syntax<br />

ESSInitialize<br />

MovePrecise<br />

Used in conjunction with AddPrecise, moves a high precision variable into<br />

another input location.<br />

Syntax<br />

MovePrecise(PrecisionVariable, X)<br />

PulseCountReset<br />

An obsolete instruction. Resets the pulse counters and the running averages<br />

used in the pulse count instruction.<br />

Syntax<br />

PulseCountReset<br />

A.4 Program Control Instructions<br />

A.4.1 Common Program Controls<br />

BeginProg / EndProg<br />

Marks the beginning and end of a program.<br />

Syntax<br />

BeginProg<br />

[program code]<br />

EndProg<br />

Call<br />

Transfers program control from the main program to a subroutine.<br />

Syntax<br />

Call subname (list of variables)<br />

479

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

Saved successfully!

Ooh no, something went wrong!