our CR300 was programmed to scan a frequency based windspeed transmitter (amongst others) every 300 sec and save a 30 min average as in the .CR300 file below. After checking the data we realized that the values are way too high, but we cannot figure out the exact calculation that the program did to post-correct our values.
Does anyone have insights into what the CR300 exactly does for an average of a 'PulseCount'? I would think that this is where to look for a fix, since it gives us correct values when I scann every 60 sec and writing a 'Sample' of every scan (every 60 sec).
Const SCAN_INTERVAL = 300 ' Sec = 5 Minuten
Const OUTPUT_INTERVAL = 30 ' data output interval in minutes.
Dim n 'Number of samples in the online covariances.
Units n = samples
'Declare Variables and Units
Units PTemp_C=Deg C
'Define Data Tables
SW12 (1 )
'Default CR300 Datalogger Battery Voltage measurement 'BattV'
'Default CR300 Datalogger Wiring Panel Temperature measurement 'PTemp_C'
'03101 Wind Speed Sensor measurement 'WS_ms'
If WS_ms<0.21 Then WS_ms=0
'03301 Wind Direction Sensor measurement 'WindDir'
If WindDir>=360 OR WindDir<0 Then WindDir=0
'Call Data Tables and Store Data
Many thanks for any help!
The comments in your program indicate the sensor is a 03101. However, the Pulsecount instruction in your program is not configured correctly to read a 03101. A 03101 would only work reading it on the P_LL channel in LLAC mode. If you are using a 03101, 03001 or 03002, you can't use any wind speed data produced by that program.