Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Getting NaN values with CS650


liminality Aug 12, 2012 09:14 AM

Hi,

I used Short Cut to create a program to log a suite of soil sensors including a CS650. However, all the other sensors record data fine except the CS650, which continually gives NaN readings - which I do not understand why.

The program I used is given below:

---------
'CR1000
'Created by Short Cut (2.9)
'Declare Variables and Units

Public BattV
Public PTemp_C
Public VW_8cm
Public PA_mS_8cm
Public TC_Temp(2)
Public HFT3_368
Public HFT3_372
Public CS65X(6)

Alias TC_Temp(1)=Ts_8cm
Alias TC_Temp(2)=Ts_35cm
Alias CS65X(1)=VWC_65
Alias CS65X(2)=EC_65
Alias CS65X(3)=Ts_65
Alias CS65X(4)=P_65
Alias CS65X(5)=PA_65
Alias CS65X(6)=VR

Units BattV=Volts
Units PTemp_C=Deg C
Units PA_mS_8cm=mSec
Units HFT3_368=mV
Units HFT3_372=mV
Units Ts_8cm=Deg C
Units Ts_35cm=Deg C
Units VWC_65=m^3/m^3
Units EC_65=dS/m
Units Ts_65=Deg C
Units P_65=unitless
Units PA_65=nSec
Units VR=unitless

'Define Data Tables

DataTable(Table1,True,-1)
DataInterval(0,10,Min,10)
Average(1,BattV,FP2,False)
Average(1,VW_8cm,FP2,False)
Average(1,PA_mS_8cm,FP2,False)
Average(1,Ts_8cm,FP2,False)
Average(1,Ts_35cm,FP2,False)
FieldNames("Ts_35cm_AVG")
Average(1,VWC_65,FP2,False)
Average(1,EC_65,FP2,False)
Average(1,Ts_65,FP2,False)
Average(1,P_65,FP2,False)

EndTable

DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Minimum(1,BattV,FP2,False,False)
EndTable

'Main Program
BeginProg
'Main Scan
Scan(10,Sec,1,0)
'Default Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,_60Hz)
'CS615 Water Content Reflectometer measurements 'VW_8cm' and 'PA_mS_8cm'
PortSet(1,1)
PeriodAvg(PA_mS_8cm,1,mV2500,1,0,0,10,50,0.001,0)
PortSet(1,0)
VW_8cm=-0.187+(0.037*PA_mS_8cm)+(0.335*PA_mS_8cm^2)
'Type E (chromel-constantan) Thermocouple measurements 'TC_Temp()'
TCDiff(TC_Temp(),2,mV2_5C,2,TypeE,PTemp_C,True,0,_60Hz,1,0)
'Generic Differential Voltage measurements 'HFT3_368'
VoltDiff(HFT3_368,1,mV7_5,4,True,0,_60Hz,36.8,0)
'Generic Differential Voltage measurements 'HFT3_372'
VoltDiff(HFT3_372,1,mV7_5,5,True,0,_60Hz,37.2,0)
'CS650/655 Water Content Reflectometer measurements 'VWC_65', 'EC_65', and 'Ts_65'
SDI12Recorder(CS65X(),7,"0","M3!",1,0)

'Call Data Tables and Store Data
CallTable(Table1)
CallTable(Table2)

NextScan
EndProg
---------

Could it be a problem with the commands for the SDI12?
The sensor was wired up as follows:
Red - 12 V
Green - C7
Black, Orange, Clear - G
Appreciate any help with this!

* Last updated by: liminality on 8/12/2012 @ 3:16 AM *


aps Aug 13, 2012 07:55 AM

Do the TS and PA_65 and P_65 variables hold valid numbers?

The CS650/655 will report 9999999 for VWC if it believes the period measurement and conductivity will not give an accurate measurement because they are outside the operational range of the sensor using its standard calibration. You can using the period measurement to calculate VWC using an alternative soil specific calibration if need be.


liminality Aug 14, 2012 11:41 AM

The TS, PA_65 and P_65 variables all hold 0.00000 values. Do you suppose this is a problem with the operational range of the sensor? Or could it be a problem with the connection?


aps Aug 14, 2012 12:24 PM

That looks like either a connection issue OR an addressing issue. Each CS650/655 can be set at a particular SDI-12 address. By default it would normally be 0 (zero) for one-off sensors, but the address may be different if you bought a batch of them or someone else has changed the address. I would check the label on the cable in case there is indication of a non-zero address.


liminality Aug 14, 2012 01:45 PM

Thank you so much for the help! I'll have a look at it again.

Log in or register to post/reply in the forum.