A.6.10 other functions, A.6.10.1 histograms – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual
Page 479

Appendix A. CRBasic Programming Instructions
479
A.6.10 Other Functions
AddPrecise 
Used in conjunction with MovePrecise, allows high‐precision totalizing of 
variables or manipulation of high‐precision variables. 
Syntax
AddPrecise(PrecisionVariable, X)
AvgRun 
Stores a running average of a measurement. 
Syntax
AvgRun(Dest, Reps, Source, Number)
Note AvgRun() should not be inserted within a For / Next construct with the 
Source and Dest parameters indexed and Reps set to 1. In essence this would be 
performing a single running average, using the values of the different elements of 
the array, instead of performing an independent running average on each element 
of the array. The results will be a running aerage of a spatial average on the 
various source array's elements. 
Randomize 
Initializes the random‐number generator. 
Syntax
Randomize(source)
RND 
Generates a random number. 
Syntax
RND(source)
A.6.10.1 Histograms
Histogram 
Processes input data as either a standard histogram (frequency distribution) or a 
weighted‐value histogram. 
Syntax
Histogram(BinSelect, DataType, DisableVar, Bins, Form, WtVal,
LoLim, UpLim)
Histogram4D 
Processes input data as either a standard histogram (frequency distribution) or a 
weighted‐value histogram of up to four dimensions. 
Syntax
Histogram4D(BinSelect, Source, DataType, DisableVar, Bins1,
Bins2, Bins3, Bins4, Form, WtVal, LoLim1, UpLim1, LoLim2, 
UpLim2, LoLim3, UpLim3, LoLim4, UpLim4) 
