beautypg.com

Campbell Scientific SDM-AO4 4-Channel Continuous Analog Output Module User Manual

Page 15

background image

SDM-AO4 Four Channel Analog Output

5: If time is (P92)
1: 0

Minutes (Seconds --) into a

2: 1

Interval (same units as above)

3: 10

Set Output Flag High (Flag 0)


6: Set Active Storage Area (P80)

;Set array ID to 101

1: 1

Final Storage Area 1

2: 101

Array

ID


7: Real Time (P77)

; Output Year, Day, Hour/Minute

1: 1110

Year,Day,Hour/Minute (midnight = 0000)


8: Wind Vector (P69)

; Output Average WS, WD, StdDev WD

1: 1

Reps

2: 0

Samples

per

Sub-Interval

3: 0

S, theta(1), sigma(theta(1)) with polar sensor

4: 1

Wind Speed/East Loc [ WS_ms ]

5: 2

Wind Direction/North Loc [ WD_0_360 ]


9: Average (P71)

; Output Average Temperature

1: 1

Reps

2: 3

Loc [ Temp_C ]


10: Sample (P70)

; Sample RH

1: 1

Reps

2: 4

Loc [ RH ]


; Routine to convert 0-360 deg. Direction to 0-540 deg.

11: Do (P86)
1: 21

Set Flag 1 Low


12: If (X<=>F) (P89)

; Set Flag 1 if previous

1: 9

X Loc [ WD_0_540 ]

; reading was > 270

2: 3

>=

3: 270

F

4: 11

Set Flag 1 High


13: Z=X (P31)

; Set 0-540 value to current 0-360 reading

1: 2

X Loc [ WD_0_360 ]

2: 9

Z Loc [ WD_0_540 ]


14: If (X<=>F) (P89)

; If current reading is <180

1: 9

X Loc [ WD_0_540 ]

2: 4

<

3: 180

F

4: 30

Then

Do


15: If Flag/Port (P91)

; And if previous reading

1: 11

Do if Flag 1 is High

; was > 270

2: 30

Then

Do

11