Instruction manual

Appendix B. Example Programs
'CR3000 Series Datalogger
'
'CNR4 program
'This program measures CNR4 four-component net radiometer
'This program also measures the Pt-100 sensor inside the CNR4
'
'User must enter the sensitivity values for all four probes in the program and
save/compile
'prior to downloading it to the datalogger.
'Search for the text string "unique" to find places to enter the sensitivity values.
'
'Wiring Instructions
'
'ANALOG CHANNELS
'1H CNR4 Pyranometer Upper signal (red)
'1L CNR4 Pyranometer Upper signal reference (blue)
'gnd jumper to 1L
'
'2H CNR4 Pyranometer Lower signal (white)
'2L CNR4 Pyranometer Lower signal reference (thin black)
'gnd jumnper to 2L
'
'3H CNR4 Pyrgeometer Upper signal (grey)
'3L CNR4 Pyrgeometer Upper signal reference (yellow)
'gnd jumper to 3L
'
'4H CNR4 Pyrgeometer Lower signal (brown)
'4L CNR4 Pyrgeometer Lower signal reference (green)
'gnd jumper to 4L
' CNR4 shield (clear)
'
'
'8H CNR4 PRT (Pt-100) signal (green)
'8L CNR4 PRT (Pt-100) signal reference (yellow)
'gnd CNR4 PRT (Pt-100) shield (clear)
'
'CURRENT EXCITATION
'IX1 CNR4 PRT (Pt-100) current excitation (grey)
'
'IXR CNR4 PRT (Pt-100) current excitation return (brown)
'
'CNR4 sensor
Public logger_temp, batt_volt
Public cnr4(4)
Alias cnr4(1) = short_up
Alias cnr4(2) = short_dn
Alias cnr4(3) = long_up
Alias cnr4(4) = long_dn
Public cnr4_T_C 'CNR4 thermistor temperature in Celcius
Public cnr4_T_K 'CNR4 thermistor temperature in Kelvin
Public long_up_corr 'Downwelling long-wave radiation with temperature correction
Public long_dn_corr 'Upwelling long-wave radiation with temperature correction
Public Rs_net 'short-wave net radiation
Public Rl_net 'long-wave net radiation
Public albedo 'Albedo
Public Rn 'total net radiation
Units logger_temp = degC
Units batt_volt = volts
Units short_up = W/m^2
Units short_dn = W/m^2
Units long_up = W/m^2
Units long_dn = W/m^2
Units cnr4_T_C = deg_C
B-11