;{CR10X} ;Program to read Decagon SRS Spectral Reflectance Sensor with CR-1000 ;Wiring: ;White: power: 12V ;Red: data: C1 ;Bare: gnd ;Note that the if the program is extended to read multiple SRS sensors, each sensor must be given a unique, non-zero SDI-12 address ;Each address must then be called in sequence with the SDI12Recorder command. ;Output: (WB1, WB2, orient) ;waveband 1 (WB1) and waveband 2 (WB2) above correspond to the irradiance (for Ni and Pi sensors) or radiance (for Nr and Pr) sensors in units of W m-2 nm-1 or W m-2 nm-1 sr-1 respectively ;For Ni and Nr sensors, waveband 1 is centered on 630 nm and waveband 2 is centered on 800 nm ;For Pi and Pr sensors, waveband 1 is centered on 532 nm and waveband 2 is centered on 570 nm ;An orientation index (orient) value of 1 indicates an upward facing sensor, a value of 0 indicates a downward facing sensor, and a value of -1 indicates undetermined orientation *Table 1 Program 01: 5 Execution Interval (seconds) 1: SDI-12 Recorder (P105) 1: 1 SDI-12 Address 2: 0 Start Measurement (aM!) 3: 1 Port 4: 1 Loc [ WB1_1 ] 5: 1.0 Multiplier 6: 0.0 Offset 2: If time is (P92) 1: 0 Minutes (Seconds --) into a 2: 60 Interval (same units as above) 3: 10 Set Output Flag High (Flag 0) 3: Real Time (P77)^3934 1: 1110 Year,Day,Hour/Minute (midnight = 0000) 4: Sample (P70)^13712 1: 3 Reps 2: 1 Loc [ WB1_1 ] *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines End Program -Input Locations- 1 WB1_1 1 1 1 2 WB2_1 1 1 0 3 Orient_1 1 1 0 4 _________ 0 0 0 5 _________ 0 0 0 6 _________ 0 0 0 7 _________ 0 0 0 8 _________ 0 0 0 9 _________ 0 0 0 10 _________ 0 0 0 11 _________ 0 0 0 12 _________ 0 0 0 13 _________ 0 0 0 14 _________ 0 0 0 15 _________ 0 0 0 16 _________ 0 0 0 17 _________ 0 0 0 18 _________ 0 0 0 19 _________ 0 0 0 20 _________ 0 0 0 21 _________ 0 0 0 22 _________ 0 0 0 23 _________ 0 0 0 24 _________ 0 0 0 25 _________ 0 0 0 26 _________ 0 0 0 27 _________ 0 0 0 28 _________ 0 0 0 -Program Security- 0000 0000 0000 -Mode 4- -Final Storage Area 2- 0 -CR10X ID- 0 -CR10X Power Up- 3 -CR10X Compile Setting- 3 -CR10X RS-232 Setting- -1 -DLD File Labels- 0 -Final Storage Labels- 0,Year_RTM,3934 0,Day_RTM 0,Hour_Minute_RTM 1,WB1_1~1,13712 1,WB2_1~2 1,Orient_1~3