Section 5. Programming the Datalogger
5-22
6: 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:
2
Values per Rep
8:
1
Loc [ Voltage ]
9:
1.0
Mult
10: 0.0
Offset
;Only set the output flag when the voltage is
;greater than or equal to -99998.
7: IF (X<=>F) (P89)
1:
1
X Loc [ Voltage ]
2:
3
>=
3:
-99998
F
4:
10
Set Output Flag High (Flag 0)
;Time stamp.
8: Real Time (P77)
1:
1111
Year,Day,Hour/Minute,Seconds
;Instantaneous values stored to final storage.
9: Sample (P70)
1:
2
Reps
2:
1
Loc [ Voltage ]
*Table 2 Program
02: 0.0000
Execution Interval (seconds)
*Table 3 Subroutines
End Program
Example CR10X Program using the Polling Method
This program will deal with sensors that send data at random intervals. The
program polls the SDM-SIO4 to see if data is available and only stores the data
then.
A typical filter that could be used is as follows:
fltst 200 "t[data]A5xff"
This filter works as follows:
t[data]
– this filter waits for an exact string match before it starts the next filter.
In this case it is waiting for the sensor to send the string ‘data’.
Содержание SDM-SIO4
Страница 6: ...SDM SIO4 Table of Contents iv This is a blank page ...
Страница 12: ...Section 1 Introduction 1 6 This is a blank page ...
Страница 16: ...Section 2 Installation and Hardware Set Up 2 4 This is a blank page ...
Страница 26: ...Section 3 Understanding How the SDM SIO4 Handles Data 3 10 This is a blank page ...
Страница 32: ...Section 4 Programming the SDM SIO4 4 6 This is a blank page ...
Страница 62: ...Section 5 Programming the Datalogger 5 30 This is a blank page ...
Страница 76: ...This is a blank page ...
Страница 81: ...This is a blank page ...