Hi,
I created a very simple program in ShortCut and sent it to two different CR1000s. It seems to compile just fine in ShortCut. I also opened it in the CRBasic editor and it compiled fine there as well. Both dataloggers returned the error message in the subject line. I tried creating the program in two different (recent) versions of ShortCut (on two different computers). I also tried two different usb adaptor/cable combinations.
See below for the program. Any thoughts??
'CR1000
'Created by Short Cut (4.0)
'Declare Variables and Units
Public BattV
Public PTemp_C
Public TRHData(2)
Public PAR_Den
Public PAR_Tot
Public Rain_mm
Public WS_ms
Public WindDir
Alias TRHData(1)=AirTC
Alias TRHData(2)=RH
Units BattV=Volts
Units PTemp_C=Deg C
Units PAR_Den=umol/s/m^2
Units PAR_Tot=mmol/m^2
Units Rain_mm=mm
Units WS_ms=meters/second
Units WindDir=degrees
Units AirTC=Deg C
Units RH=%
'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min,10)
Minimum(1,BattV,FP2,False,False)
Average(1,PTemp_C,FP2,False)
Average(1,AirTC,FP2,False)
Sample(1,RH,FP2)
Average(1,PAR_Den,FP2,False)
Totalize(1,Rain_mm,FP2,False)
Average(1,WS_ms,FP2,False)
Maximum(1,WS_ms,FP2,False,False)
Sample(1,WindDir,FP2)
EndTable
'Main Program
BeginProg
'Main Scan
Scan(30,Sec,1,0)
'Default CR1000 Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default CR1000 Datalogger Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,_60Hz)
'CS215 Temperature & Relative Humidity Sensor measurements 'AirTC' and 'RH'
SDI12Recorder(TRHData(),1,"0","M! ",1,0,-1)
'LI190SB Quantum Sensor measurements 'PAR_Tot' and 'PAR_Den
VoltDiff(PAR_Den,1,mV7_5,1,True,0,_60Hz,1,0)
If PAR_Den<0 Then PAR_Den=0
PAR_Tot=PAR_Den*8.278146
PAR_Den=PAR_Den*275.9382
'TE525/TE525WS Rain Gauge measurement 'Rain_mm'
PulseCount(Rain_mm,1,1,2,0,0.254,0)
'05103 Wind Speed & Direction Sensor measurements 'WS_ms' and 'WindDir'
PulseCount(WS_ms,1,2,1,1,0.098,0)
BrHalf(WindDir,1,mV2500,3,1,1,2500,True,20000,_60Hz,355,0)
If WindDir>=355 Or WindDir<0 Then WindDir=0
'Call Data Tables and Store Data
CallTable Table1
NextScan
EndProg
The error is on this instruction:
SDI12Recorder(TRHData(),1,"0","M! ",1,0,-1)
You probably have an old OS/Firmware in the CR1000 that doesn't support the optional parameter being used.
Recommend you upgrade the OS of your CR1000 dataloggers.
This post is under review.