4 outputting datalogger data – Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual
Page 59
Section 5. Programming the Datalogger
5-27
2: 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:
3
Loc [ voltage1 ]
9:
1.0
Mult
10: 0.0
Offset
;set the output flag so that readings can be stored into
;final storage.
3: Do (P86)
1:
10
Set Output Flag High (Flag 0)
;time stamp.
4: Real Time (P77)
1:
1111
Year,Day,Hour/Minute,Seconds
;instantaneous readings stored into final storage.
5: Sample (P70)
1:
2
Reps
2:
3
Loc [ voltage1 ]
;end of interrupt routine.
6: End (P95)
End Program
Where multiple ports are being used, the first instruction would
have to be command 1 to see which port has data, followed by a
second call, or calls, to collect the data.
5.4 Outputting Datalogger Data
The SDM-SIO4 can be used to drive displays, printout devices and other
output-only systems. In this case after the initial configuration (as above) either
simple data can be sent using commands 0320, 1025 or just data strings using
1024 or strings plus formatted data sent using command 2304.
This program example will output the battery voltage and panel temperature
from the datalogger locations using the SDM-SIO4 Output Formatter.
NOTE