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
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 ...