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 Instructions<br />

A.6.10 Other Functions<br />

AddPrecise<br />

Used in conjunction with MovePrecise, allows high‐precision totalizing of<br />

variables or manipulation of high‐precision variables.<br />

Syntax<br />

AddPrecise(PrecisionVariable, X)<br />

AvgRun<br />

Stores a running average of a measurement.<br />

Syntax<br />

AvgRun(Dest, Reps, Source, Number)<br />

Note AvgRun() should not be inserted within a For / Next construct with the<br />

Source and Dest parameters indexed and Reps set to 1. In essence this would be<br />

performing a single running average, using the values of the different elements of<br />

the array, instead of performing an independent running average on each element<br />

of the array. The results will be a running aerage of a spatial average on the<br />

various source array's elements.<br />

Randomize<br />

Initializes the random‐number generator.<br />

Syntax<br />

Randomize(source)<br />

RND<br />

Generates a random number.<br />

Syntax<br />

RND(source)<br />

A.6.10.1 Histograms<br />

Histogram<br />

Processes input data as either a standard histogram (frequency distribution) or a<br />

weighted‐value histogram.<br />

Syntax<br />

Histogram(BinSelect, DataType, DisableVar, Bins, Form, WtVal,<br />

LoLim, UpLim)<br />

Histogram4D<br />

Processes input data as either a standard histogram (frequency distribution) or a<br />

weighted‐value histogram of up to four dimensions.<br />

Syntax<br />

Histogram4D(BinSelect, Source, DataType, DisableVar, Bins1,<br />

Bins2, Bins3, Bins4, Form, WtVal, LoLim1, UpLim1, LoLim2,<br />

UpLim2, LoLim3, UpLim3, LoLim4, UpLim4)<br />

501

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

Saved successfully!

Ooh no, something went wrong!