Appendix D. GetDataRecord Sample Program
D-2
'Main Program running GetDataRecord instructions every 5 seconds
BeginProg
Scan
(5,Sec,0,0)
'adding &H8000 to the remote table number is required
'to avoid a -7 table signature mismatch code (returned to GDRResult1/2)
'See the GetDataRecord CRBasic help topic for more details.
'The PakBus address of the CRVW3 is "4", the PakBus neighbor to route through is "2"
'The radio is connected to the CS I/O SDC7 port+channel
'Only the most recent record is retrieved and placed into the table (MaxRecords=1)
'Use MaxRecords = -100 to get the 100 most recent records in timestamped order
GetDataRecord
(GDRResult1,ComSDC7,2,4,0000,0,2,1+&H8000,VW_Data,1)
GetDataRecord
(GDRResult2,ComSDC7,2,4,0000,0,2,2+&H8000,CalHist,1)
NextScan
EndProg
Summary of Contents for CRVW3
Page 2: ......
Page 3: ......
Page 7: ......
Page 13: ...Table of Contents vi ...
Page 121: ...Appendix A Updating CRVW3 Firmware A 4 ...
Page 131: ...Appendix E Engineering Output and Calibration E 4 ...
Page 133: ......
Page 134: ......