1 example program, Example program, 3. wind speed multiplier and offset – Campbell Scientific P2546A-L Anemometer User Manual
Page 15
P2546A-L Anemometer
The following table lists the multiplier and offset to obtain meters per second
(m/s) when the pulse count instruction is configured to output the result in Hz.
TABLE 7-3. Wind Speed Multiplier and Offset
Standard Calibration is listed below. Using the MEASNET calibration will
give measurements in m/s. MEASNET calibration multiplier and offset will
be listed on the MEASNET calibration sheet included with each sensor.
Model m/s
P2546A Multiplier
=
0.6207
Offset = 0.27
7.2.1 Example Program
The following CR1000 example program uses a pulse port to measure the
P2546A once a second. The program stores the mean, maximum, minimum,
and standard deviation of the measured wind speed over a 10 minute interval.
Wiring for the example is given in the following table.
'Pulse Port Example
'CR1000 Series Datalogger
'Program to measure P2546A and store ten minute averages
'Wiring
' Datalogger
'Color Description Channel
'----- ----------- -------
'Brown Signal Reference P1
'White Signal
'Clear Shield
Const P2546A_mult = .6201
Const p2546a_offset = .27
Public PTemp, batt_volt
Public P2546A
'Define Data Tables
DataTable (Test,1,1000)
DataInterval (0,10,Min,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
Average (1,P2546A,FP2,False)
Maximum (1,P2546A,FP2,False,False)
Minimum (1,P2546A,FP2,False,False)
StdDev (1,P2546A,FP2,False)
EndTable
'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
'Measure P2546A and correct measurement if wind speed is zero
PulseCount (P2546A,1,1,2,1,P2546A_mult,p2546a_offset)
If P2546A <= p2546a_offset Then P2546A = 0
9