ChartScan Program Examples
Appendix D
D-16
ChartScan User’s Manual
'Query the ChartScan for the # of scans available in the Buffer
PRINT "An SRQ has been detected.."
PRINT #1, "SPOLL07"
INPUT #2, sp%
PRINT "spoll response before :"; sp%
PRINT #1, "OUTPUT 07;U0X"
PRINT #1, "ENTER 07"
INPUT #2, EVENT%
PRINT "EVent Status before :"; EVENT%
PRINT #1, "OUTPUT 07;U6X"
PRINT #1, "ENTER 07"
LINE INPUT #2, U$
PRINT U$
UA$ = MID$(U$, 9, 7)
UA& = VAL(UA$)
PRINT UA&
PRINT "The ChartScan collected "; UA&; " scans of data"
'Upload available data
B& = UA& * 24
PRINT "Total number of Bytes available : "; B&
PRINT #1, "OUTPUT 07;R3X"
PRINT "Uploading data.."
PRINT #1, "ENTER 07 #8"
a$ = INPUT$(8, 2)
PRINT "The preamble is :"; a$
pre& = VAL(MID$(a$, 2, 7))
loops = INT(pre& / s!)
PRINT "loops "; loops
FOR i = 1 TO loops
PRINT #1, "ENTER 07 #"; s!; " BUFFER "; buffseg%; ":"; buffoff%; " DMA"
PRINT #3, DataBuffer$;
NEXT i
rema! = pre& - (s! * loops)
PRINT "remainder of preamble"; rema!
PRINT #1, "ENTER 07 #"; rema!; " BUFFER "; buffseg%; ":"; buffoff%; " DMA"
PRINT #3, MID$(DataBuffer$, 1, rema!);
PRINT #1, "OUTPUT 07;U0X"
PRINT #1, "ENTER 07"
INPUT #2, EVENT%
PRINT "EVent Status after :"; EVENT%
PRINT #1, "SPOLL07"
INPUT #2, sp%
PRINT "Spoll response after uploading :"; sp%
PRINT #1, "OUTPUT 07;U6X"
PRINT #1, "ENTER 07"
LINE INPUT #2, U$
PRINT U$
PRINT "Waiting for 75% Full..": PRINT
c = CSRLIN
SLEEP 1
PRINT #1, "ARM SRQ"
RETURN
Содержание OMB-CHARTSCAN 1400
Страница 1: ...August 2002 OMB CHARTSCAN 1400 Portable Data Recorder p n OMB 483 0901 Rev 3 1...
Страница 6: ...iv ChartScan User s Manual...
Страница 24: ...ChartScan User s Manual...
Страница 32: ...2 8 General Information ChartScan User s Manual Notes...
Страница 56: ...3 24 ChartScan User s Manual Notes...
Страница 117: ...ChartScan User s Manual Calibration 6 13 1 Connect an applicable calibration harness to each card Refer to figure below...
Страница 124: ...6 20 Calibration ChartScan User s Manual...
Страница 126: ...A ii ChartScan User s Manual...
Страница 136: ...API Commands Appendix A A 10 ChartScan User s Manual Notes...
Страница 176: ...API Commands Appendix A A 50 ChartScan User s Manual...
Страница 230: ...Appendix C Registers Data Formats Queries ChartScan User s Manual C 13...
Страница 237: ...Registers Data Formats Queries Appendix C C 20 ChartScan User s Manual Notes...
Страница 257: ...E 2 ChartScan User s Manual Notes...
Страница 265: ...ASCII Code Summary Appendix F F 8 ChartScan User s Manual Notes...
Страница 269: ...Abbreviations Appendix H H 2 ChartScan User s Manual Notes...
Страница 271: ...ChartScan User s Manual...