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.

Adding EC100 data to logger program


mypnas-8hetce-tubhyP Mar 5, 2025 11:24 AM

Hello,

I am trying to add data from an IRGASON that is connected via an EC100 to my data logger (CR1000X). I have used the SCW program to include all of the attached sensors and it seems to be working fine. However, SCW does not let me select any EC100 to be included in the program. I am new to programming in the CRBasicLanguage. I have tried using the EC100 command, but it does not seem to work. Is there a simple way to read and store data from the EC100?

Kind regards


mypnas-8hetce-tubhyP Mar 6, 2025 12:47 PM

I was now able to receive data from the IRGASON, but I am having trouble making the program scan the EC100() at 20Hz simultaneously to the 5sec scan interval of the rest of the sensors. They can only be scanned after each other and not simultaneously. This is my code:

BeginProg

Scan (50,mSec,0,0)
EC100 (Ux,1,1)
CallTable ts_data
NextScan

SlowSequence
Scan(5,Sec,1,0)
'Default CR1000X Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default CR1000X Datalogger Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,50)
'NR01 Net Radiometer measurements 'K_down', 'K_up', 'L_down', 'L_up', 'NR01TC', 'NR01TK',
'NetRs', 'NetRl', 'Albedo', 'Tot_down', 'Tot_up', 'NetRad', 'L_down_Co', and 'L_Up_Co' on the
'GRANITE VOLT 116 named '' with serial number '1519' and CPI address '1'
CDM_VoltDiff(VOLT116,1,K_down,1,autorange,1,True,0,50,68.96552,0)
CDM_VoltDiff(VOLT116,1,K_up,1,autorange,2,True,0,50,75.18797,0)
CDM_VoltDiff(VOLT116,1,L_down,1,mV200,3,True,0,50,90.90909,0)
CDM_VoltDiff(VOLT116,1,L_up,1,mV200,4,True,0,50,86.20689,0)
CDM_BrHalf4W(VOLT116,1,NR01TC,1,mV200,mV200,5,1,1,4000,True,True,0,50,1,0)
PRT(NR01TC,1,NR01TC,1,0)
NR01TK=NR01TC+273.15
NetRs=K_down-K_up
NetRl=L_down-L_up
Albedo=K_up/K_down
Tot_down=K_down+L_down
Tot_up=K_up+L_up
NetRad=Tot_down-Tot_up
L_down_Co=L_down+5.67*10^-8*NR01TK^4
L_Up_Co=L_up+5.67*10^-8*NR01TK^4
'107 Temperature Probe (4-wire) measurements 'T107_C' on the
'GRANITE VOLT 116 named '' with serial number '1519' and CPI address '1'
CDM_Therm107(VOLT116,1,T107_C,1,25,4,0,50,1,0)
'107 Temperature Probe (4-wire) measurements 'T107_C_2' on the
'GRANITE VOLT 116 named '' with serial number '1519' and CPI address '1'
CDM_Therm107(VOLT116,1,T107_C_2,1,26,4,0,50,1,0)
'107 Temperature Probe (4-wire) measurements 'T107_C_3' on the
'GRANITE VOLT 116 named '' with serial number '1519' and CPI address '1'
CDM_Therm107(VOLT116,1,T107_C_3,1,27,4,0,50,1,0)
'HMP155 (constant power) Temperature & Relative Humidity Sensor measurements 'AirTC' and 'RH'
VoltSE(AirTC,1,mV1000,5,False,0,50,0.14,-80)
VoltSE(RH,1,mV1000,6,False,0,50,0.1,0)
If RH>100 And RH<108 Then RH=100
'CS616 Water Content Reflectometer measurements 'VW' and 'PA_uS'
CS616(PA_uS,1,13,C3,1,1,0)
VW=-0.0663+(-0.0063*PA_uS)+(0.0007*PA_uS^2)
'CS616 Water Content Reflectometer measurements 'VW_2' and 'PA_uS_2'
CS616(PA_uS_2,1,14,C3,1,1,0)
VW_2=-0.0663+(-0.0063*PA_uS_2)+(0.0007*PA_uS_2^2)
'HFP01 Soil Heat Flux Plate measurement 'SHF'
VoltDiff(SHF,1,mV200,5,True,0,50,17.07067,0)
'Type E Thermocouple measurements 'TCAV_TC'
TCDiff(TCAV_TC,1,mv200C,1,TypeE,PTemp_C,True,0,50,1,0)
'Call Data Tables and Store Data
CallTable Table30min
CallTable Table1d
NextScan

EndProg

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