Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual

Page 67

Advertising
background image

Section 6. Data Error Detection

6-5

4: Do (P86)

1:

11

Set Flag 1 High

;end of filter setup

5: End (P95)

;poll SDM-SIO4 to see if data is available for the datalogger to collect
;the value from the poll is read into location 1

6: SDM-SIO4 (P113)

1:

1

Reps

2:

0

Address

3:

1

Send/Receive Port 1

4:

1

Command

5:

0

1st Parameters

6:

0

2nd Parameters

7:

1

Values per Rep

8:

1

Loc [ _________ ]

9:

1

Mult

10: 0

Offset

;if the value in location 1 is greater than zero then there must be data
;this assumes only one sensor is connected to the SDM-SIO4

7: IF (X<=>F) (P89)

1:

1

X Loc [ _________ ]

2:

3

>=

3:

1

F

4:

30

Then Do

;if data is available then get the value and put into location 2

8: SDM-SIO4 (P113)

1:

1

Reps

2:

0

Address

3:

1

Send/Receive Port 1

4:

4

Command

5:

0

1st Parameters

6:

0

2nd Parameters

7:

1

Values per Rep

8:

2

Loc [ _________ ]

9:

1

Mult

10: 0

Offset

;end of get data.

8: End (P95)

*Table 2 Program

02: 0.0000

Execution Interval (seconds)

Advertising