; NOTE: the following CSI logger program annotations may contain errors. ; From an experimental perl module, Campbell::Program, by fnkci@uaf.edu ; output generated on host shand at Tue Jun 5 09:03:11 2007 local time MODE 13 13:00 1 01:} MODE 14 MODE 1 SCAN RATE 60 1:P10 ; BATT VOLT 1:20 ; store in location 20 2:P20 ; PORT SET 1:7999 ; P8=output, P7=nc, P6=nc, P5=nc 2:9999 ; P4=nc, P3=nc, P2=nc, P1=nc 3:P92 ; IF TIME 1:1 ; is 1 minute into 2:60 ; 60 minute interval 3:30 ; then DO... 4:P89 ; IF X < = > F 1:20 ; if X from location 20 2:4 ; is < 3:12.2 ; fixed value 12.2 4:21 ; set flag F1 low 5:P89 ; IF X < = > F 1:20 ; if X from location 20 2:4 ; is < 3:12.2 ; fixed value 12.2 4:48 ; set port C8 high 6:P95 ; END IF-DO 7:P92 ; IF TIME 1:481 ; is 481 minutes into 2:1440 ; 1440 minute interval 3:48 ; set port C8 high 8:P91 ; IF FLAG/PORT 1:21 ; if flag F1 is low 2:30 ; then DO... 9:P92 ; IF TIME 1:10 ; is 10 minutes into 2:60 ; 60 minute interval 3:58 ; set port C8 low 10:P95 ; END IF-DO 11:P17 ; INTERNAL TEMP 1:21 ; store in location 21 12:P3 ; PULSE 1:2 ; 2 repetitions 2:1 ; from pulse counter P1 3:22 ; as switch closure, discard long interval counts, output frequency (Hz) 4:1-- ; store result in locations 1 and 2 5:.8 ; with multiplier * 0.8 6:.447 ; and with offset + 0.447 13:P4 ; EX-DEL-SE 1:1 ; 1 repetition 2:5 ; using 2500 mV range, slow integration 3:1 ; from input channel SE1 4:1 ; drive excitation channel E1 5:2 ; with delay 0.02 sec 6:2500 ; with 2500 mV excitation 7:3 ; store result in location 3 8:.2865 ; with multiplier * 0.2865 9:0 ; and with offset + 0 14:P11 ; TEMP (107) 1:1 ; 1 repetition 2:3 ; from input channel SE3 3:2 ; excitation channel E2 4:4 ; store result in location 4 5:1 ; with multiplier * 1 6:0 ; and with offset + 0 15:P4 ; EX-DEL-SE 1:1 ; 1 repetition 2:5 ; using 2500 mV range, slow integration 3:5 ; from input channel SE5 4:3 ; drive excitation channel E3 5:15 ; with delay 0.15 sec 6:2500 ; with 2500 mV excitation 7:6 ; store result in location 6 8:.1 ; with multiplier * 0.1 9:0 ; and with offset + 0 16:P86 ; DO 1:45 ; set port C5 high 17:P22 ; EXCIT w/DEL 1:1 ; drive excitation channel E1 2:0 ; delay 0 sec w/ excitation 3:15 ; delay 0.15 sec after excitation 4:0 ; with 0 mV excitation 18:P1 ; VOLT (SE) 1:1 ; 1 repetition 2:5 ; using 2500 mV range, slow integration 3:4 ; from input channel SE4 4:5 ; store result in location 5 5:.1 ; with multiplier * 0.1 6:-40 ; and with offset + -40 19:P1 ; VOLT (SE) 1:1 ; 1 repetition 2:5 ; using 2500 mV range, slow integration 3:6 ; from input channel SE6 4:7 ; store result in location 7 5:.1 ; with multiplier * 0.1 6:0 ; and with offset + 0 20:P86 ; DO 1:55 ; set port C5 low 21:P89 ; IF X < = > F 1:6 ; if X from location 6 2:3 ; is >= 3:100 ; fixed value 100 4:30 ; then DO... 22:P89 ; IF X < = > F 1:6 ; if X from location 6 2:4 ; is < 3:108 ; fixed value 108 4:30 ; then DO... 23:P30 ; Z=F*10^exp 1:100 ; fixed value 100 2:0 ; times 1 (10^0) 3:6 ; store 100 in location 6 24:P95 ; END IF-DO 25:P95 ; END IF-DO 26:P89 ; IF X < = > F 1:7 ; if X from location 7 2:3 ; is >= 3:100 ; fixed value 100 4:30 ; then DO... 27:P89 ; IF X < = > F 1:7 ; if X from location 7 2:4 ; is < 3:108 ; fixed value 108 4:30 ; then DO... 28:P30 ; Z=F*10^exp 1:100 ; fixed value 100 2:0 ; times 1 (10^0) 3:7 ; store 100 in location 7 29:P95 ; END IF-DO 30:P95 ; END IF-DO 31:P2 ; VOLT (DIFF) 1:1 ; 1 repetition 2:3 ; using 25 mV range, slow integration 3:4 ; from input channel DIFF4 4:9 ; store result in location 9 5:94.34 ; with multiplier * 94.34 6:0 ; and with offset + 0 32:P2 ; VOLT (DIFF) 1:1 ; 1 repetition 2:2 ; using 7.5 mV range, slow integration 3:5 ; from input channel DIFF5 4:10 ; store result in location 10 5:94.52 ; with multiplier * 94.52 6:0 ; and with offset + 0 33:P1 ; VOLT (SE) 1:1 ; 1 repetition 2:2 ; using 7.5 mV range, slow integration 3:11 ; from input channel SE11 4:11 ; store result in location 11 5:232.02 ; with multiplier * 232.02 6:0 ; and with offset + 0 34:P1 ; VOLT (SE) 1:1 ; 1 repetition 2:2 ; using 7.5 mV range, slow integration 3:12 ; from input channel SE12 4:12 ; store result in location 12 5:241.55 ; with multiplier * 241.55 6:0 ; and with offset + 0 35:P86 ; DO 1:41 ; set port C1 high 36:P1 ; VOLT (SE) 1:1 ; 1 repetition 2:24 ; using 250 mV range, reject 60 Hz 3:2 ; from input channel SE2 4:8 ; store result in location 8 5:1 ; with multiplier * 1 6:0 ; and with offset + 0 37:P86 ; DO 1:51 ; set port C1 low 38:P92 ; IF TIME 1:0 ; is 0 minutes into 2:60 ; 60 minute interval 3:12 ; set flag F2 high 39:P91 ; IF FLAG/PORT 1:12 ; if flag F2 is high 2:30 ; then DO... 40:P86 ; DO 1:41 ; set port C1 high 41:P87 ; LOOP 1:0 ; execute on every pass 2:6 ; for 6 iterations 42:P86 ; DO 1:72 ; pulse port C2 43:P22 ; EXCIT w/DEL 1:2 ; drive excitation channel E2 2:0 ; delay 0 sec w/ excitation 3:10 ; delay 0.1 sec after excitation 4:0 ; with 0 mV excitation 44:P95 ; END LOOP 45:P1 ; VOLT (SE) 1:1 ; 1 repetition 2:5 ; using 2500 mV range, slow integration 3:2 ; from input channel SE2 4:13 ; store result in location 13 5:.01141 ; with multiplier * 0.01141 6:0 ; and with offset + 0 46:P86 ; DO 1:51 ; set port C1 low 47:P86 ; DO 1:41 ; set port C1 high 48:P86 ; DO 1:44 ; set port C4 high 49:P86 ; DO 1:72 ; pulse port C2 50:P87 ; LOOP 1:0 ; execute on every pass 2:3 ; for 3 iterations 51:P22 ; EXCIT w/DEL 1:1 ; drive excitation channel E1 2:0 ; delay 0 sec w/ excitation 3:10 ; delay 0.1 sec after excitation 4:0 ; with 0 mV excitation 52:P86 ; DO 1:72 ; pulse port C2 53:P27 ; PERIOD AVG (SE) 1:1 ; 1 repetition 2:4 ; period in 10e-6 seconds, range 2.0 V, max 200 kHz 3:2 ; from input channel SE2 4:10 ; measure for 10 cycles 5:5 ; with timeout of 0.05 seconds 6:14-- ; store result in locations 14 through 16 7:.001 ; with multiplier * 0.001 8:0 ; and with offset + 0 54:P95 ; END LOOP 55:P86 ; DO 1:54 ; set port C4 low 56:P86 ; DO 1:51 ; set port C1 low 57:P55 ; POLYNOMIAL, F(X) = c0 + c1X + c2X^2 + c3X^3 + c4X^4 + c5X^5 1:3 ; 3 repetitions 2:14 ; X value from location 14 3:17-- ; store F(X) in locations 17 through 19 4:-.187 ; c0 = -.187 5:.037 ; c1 = .037 6:.335 ; c2 = .335 7:0 ; c3 = 0 8:0 ; c4 = 0 9:0 ; c5 = 0 58:P56 ; SAT VP 1:4 2:22 59:P36 ; Z=X*Y 1:22 ; X value from location 22 2:6 ; Y value from location 6 3:23 ; store product in location 23 60:P37 ; Z=X*F 1:23 ; X value from location 23 2:.1 ; fixed value 0.1 3:24 ; store product in location 24 61:P37 ; Z=X*F 1:24 ; X value from location 24 2:.1 ; fixed value 0.1 3:25 ; store product in location 25 62:P37 ; Z=X*F 1:25 ; X value from location 25 2:1.6373 ; fixed value 1.6373 3:26 ; store product in location 26 63:P40 ; Z=LN(X) 1:26 ; X value from location 26 2:26 ; store natural log in location 26 64:P37 ; Z=X*F 1:26 ; X value from location 26 2:241.88 ; fixed value 241.88 3:27 ; store product in location 27 65:P30 ; Z=F*10^exp 1:17.558 ; fixed value 17.558 2:0 ; times 1 (10^0) 3:28 ; store 17.558 in location 28 66:P35 ; Z=X-Y 1:28 ; X value from location 28 2:26 ; Y value from location 26 3:28 ; store difference in location 28 67:P38 ; Z=X/Y 1:27 ; X value from location 27 2:28 ; Y value from location 28 3:29 ; store ratio in location 29 68:P95 ; END IF-DO 69:P86 ; DO 1:22 ; set flag F2 low 70:P92 ; IF TIME 1:0 ; is 0 minutes into 2:60 ; 60 minute interval 3:10 ; set output flag F0 high, output array id 170 71:P80 ; STORE AREA 1:1 ; final storage area 1 2:404 ; set array id to 404 72:P77 ; REAL TIME 1:1220 ; year + day(midnight=prev.day) + hour-minute(midnight=2400) 73:P70 ; SAMPLE 1:2 ; 2 repetitions 2:4 ; value from location 4 74:P73 ; MAXIMUM 1:2 ; 2 repetitions 2:0 ; output value only 3:4 ; value from location 4 75:P74 ; MINIMUM 1:2 ; 2 repetitions 2:0 ; output value only 3:4 ; value from location 4 76:P70 ; SAMPLE 1:1 ; 1 repetition 2:6 ; value from location 6 77:P73 ; MAXIMUM 1:2 ; 2 repetitions 2:0 ; output value only 3:6 ; value from location 6 78:P74 ; MINIMUM 1:2 ; 2 repetitions 2:0 ; output value only 3:6 ; value from location 6 79:P70 ; SAMPLE 1:3 ; 3 repetitions 2:17 ; value from location 17 80:P70 ; SAMPLE 1:1 ; 1 repetition 2:24 ; value from location 24 81:P70 ; SAMPLE 1:1 ; 1 repetition 2:29 ; value from location 29 82:P71 ; AVERAGE 1:2 ; 2 repetitions 2:1 ; value from location 1 83:P73 ; MAXIMUM 1:2 ; 2 repetitions 2:0 ; output value only 3:1 ; value from location 1 84:P69 ; WIND VECTOR 1:1 ; 1 repetition 2:0 ; no standard deviation subinterval 3:2 ; avg spd, resultant spd, resultant dir, std dev of dir (CSI), for anem. & vane 4:2 ; wind speed from location 2 5:3 ; wind direction from location 3 85:P71 ; AVERAGE 1:5 ; 5 repetitions 2:8 ; value from location 8 86:P70 ; SAMPLE 1:1 ; 1 repetition 2:20 ; value from location 20 87:P91 ; IF FLAG/PORT 1:58 ; if port C8 is low 2:30 ; then DO... 88:P96 ; SERIAL OUT 1:71 ; storage module 1 89:P95 ; END IF-DO 90:P0 ; NOP MODE 2 SCAN RATE 0 MODE 3 1:P0 ; NOP MODE 10 1:29 2:64 3:0 4:586566 5:2048 MODE 12 1:0 1:0 1:0 MODE 11 1:44015 2:61954 3:1280 4:11 5:0 6:1 7:6 8:3.1214 9:99 10:0 11:1 ;; CAUTION: experimental output tags follow: ;; ;; output array: ;; 1. id_170 ;; ;; output array: ;; 1. id_404 ;; 2. year ;; 3. day ;; 4. hhmm ;; 5. sample-Loc4.SE3 ;; 6. sample-Loc5.SE4 ;; 7. maximum-Loc4.SE3 ;; 8. maximum-Loc4.SE3 ;; 9. minimum-Loc4.SE3 ;; 10. minimum-Loc4.SE3 ;; 11. sample-Loc6.SE5 ;; 12. maximum-Loc6.SE5 ;; 13. maximum-Loc6.SE5 ;; 14. minimum-Loc6.SE5 ;; 15. minimum-Loc6.SE5 ;; 16. sample-Loc17 ;; 17. sample-Loc18 ;; 18. sample-Loc19 ;; 19. sample-Loc24 ;; 20. sample-Loc29 ;; 21. average-Loc1 ;; 22. average-Loc2 ;; 23. maximum-Loc1 ;; 24. maximum-Loc1 ;; 25. vector_avg_spd-Loc2 ;; 26. vector_resultant_spd ;; 27. vector_avg_dir-Loc3.SE1 ;; 28. vector_dir_std_dev ;; 29. average-Loc8.SE2 ;; 30. average-Loc9.DIFF4 ;; 31. average-Loc10.DIFF5 ;; 32. average-Loc11.SE11 ;; 33. average-Loc12.SE12 ;; 34. sample-Loc20.logger_battery_voltage