Section 6. Data Error Detection
6-4
on the received data. If they match then the value converted with the “f” filter is
made available for the datalogger to get. If the checksums do not match then
the value is discarded as soon as any error is detected.
”
marks the end of the filter string.
The above example is just one way of using a filter to achieve the required
result.
6.2.2 CR10X Program Example
A typical CR10X datalogger program to work with the above filter is shown
below.
Assume the SDM-SIO4 is set to address 0, the sensor is connected to port 1 of
the SDM-SIO4 and the port settings, baud rate, etc. have been set. The sensor
outputs its string every second. Only the parameter values to be entered into the
appropriate instructions are shown.
*Table 1 Program
01: 1.0
Execution Interval (seconds)
;test flag 1 – if not set tell the SDM-SIO4 to use filter string 100
1: If Flag/Port (P91)
1:
21
Do if Flag 1 is Low
2:
30
Then Do
;tell the SDM-SIO4 to use filter string 100
2: SDM-SIO4 (P113)
1:
1
Reps
2:
0
Address
3:
1
Send/Receive Port 1
4: 2054
Command
5:
9100
1st Parameters
6:
0
2nd Parameters
7:
0
Values per Rep
8:
0000
Loc [ _________ ]
9:
0
Mult
10: 0
Offset
;a minimum delay of 4ms is required by the above P113
3: Excitation with Delay (P22)
1:
1
Ex Channel
2:
0
Delay W/Ex (units = 0.01 sec)
3:
1
Delay After Ex (units = 0.01 sec)
4:
0
mV Excitation
;set flag 1 to instruct the SDM-SIO4 to use the filter once only
Summary of Contents for SDM-SIO4
Page 6: ...SDM SIO4 Table of Contents iv This is a blank page ...
Page 12: ...Section 1 Introduction 1 6 This is a blank page ...
Page 16: ...Section 2 Installation and Hardware Set Up 2 4 This is a blank page ...
Page 26: ...Section 3 Understanding How the SDM SIO4 Handles Data 3 10 This is a blank page ...
Page 32: ...Section 4 Programming the SDM SIO4 4 6 This is a blank page ...
Page 62: ...Section 5 Programming the Datalogger 5 30 This is a blank page ...
Page 76: ...This is a blank page ...
Page 81: ...This is a blank page ...