Campbell Scientific PS200/CH200 12 V Charging Regulators User Manual
Page 101

Appendix A. Advanced Programming Techniques
SDI12Recorder (CH200_M0(),3,new_sdi12_address,"MC!",1.0,0)
'Array values start with one. Values for charge state start with -1.
'Have to shift the value by two to line it up with the correct words
'in the array.
ChargeState = ChargeStateArr(Chg_State + 2)
'Values for charge source start with zero. Have to shift the value
'by one to line it up with the correct words in the array.
ChargeSource = ChargeSourceArr(Chg_Source + 1)
'Values for check battery start with zero. Have to shift the value
'by one to line it up with the correct words in the array.
CheckBattery = CheckBatteryArr(Ck_Batt + 1)
NextScan
EndProg
A-39