Appendix B
Configuration Aspects for Programmers
ChartScan User’s Manual
B-25
The
R2
command will read the oldest available trigger block in the Acquisition Buffer. For instance, continuing
with the previous example:
PRINT#1,"OUTPUT07; U6X"
‘ Request the current status of the Acquisition Buffer
PRINT#1,"ENTER07"
‘ Retrieve it.
INPUT A$
‘ Screen shows...
PRINT A$
0000006,0020215,-00000099,12:51:43.100,03/24/97,00000100,01:53:01.300,03/24/97,00000250,01
The above response indicates that there are 6 trigger blocks currently defined in the Acquisition Buffer and there
are 20215 total scans in the buffer. Furthermore, it shows that the current read pointer is at scan # -99 in the 1st
trigger block and that there are 350 scans in this trigger block. To retrieve that trigger block, perform the
following:
PRINT#1,"OUTPUT07;R2X"
‘Request the oldest trigger block
PRINT#1,"ENTER07"
‘ Retrieve it.
INPUT A$
‘ Screen shows (4 channels x 350 scans) 1400 readings
PRINT A$
+0234.20-0019.40+0001.40+0023.60....
PRINT#1,"OUTPUT07; U6X"
‘ Request the current status of the Acquisition Buffer
PRINT#1,"ENTER07"
‘ Retrieve it.
INPUT A$
‘ Screen shows...
PRINT A$
0000005,0019865,-00000100,02:15:34.100,03/24/97,00000100,04:51:10.300,03/24/97,00000250,01
Notice that there are now only 5 trigger blocks in the buffer and that there are only 19,865 scans in the buffer.
Also note that the current read pointer is at the beginning of what was the next trigger block. That trigger block
is now the current trigger block.
The
R3
command will read all available data within the Acquisition Buffer. For instance, continuing with the
previous example:
PRINT#1,"OUTPUT07; U6X"
‘ Request the current status of the Acquisition Buffer
PRINT#1,"ENTER07"
‘ Retrieve it.
INPUT A$
‘ Screen shows...
PRINT A$
0000005,0019865,-00000100,02:15:34.100,03/24/97,00000100,04:51:10.300,03/24/97,00000250,01
The above response indicates that there are 5 trigger blocks currently defined in the Acquisition Buffer and there
are 19,865 total scans in the buffer. It also shows the current read pointer at the -100 scan in the 1st trigger
block and that their are 351 scans in this trigger block (101 + 250); i.e., 101 scans from -100 to 0, plus the 250
scans from 1 to 250. To retrieve all the scan data within the buffer:
PRINT#1,"OUTPUT07;R3X"
‘ Request all scan data in the buffer.
PRINT#1,"ENTER07"
‘ Retrieve it.
INPUT A$
‘ Screen shows (4 channels x 19865 scans) 79460 readings
PRINT A$
+0234.20-0019.40+0001.40+0023.60....
PRINT#1,"OUTPUT07; U6X"
‘ Request the current status of the Acquisition Buffer
PRINT#1,"ENTER07"
‘ Retrieve it.
INPUT A$
‘ Screen shows...
PRINT A$
0000000,0000000,-9999999,00:00:00.000,00/00/00,-0999999,00:00:00.000,00/00/00,-0999999,00
Notice that the Buffer Status String is null indicating that the Acquisition Buffer is completely empty.
For more information on using the
R
command refer to
Appendix A.
Summary of Contents for OMB-CHARTSCAN 1400
Page 1: ...August 2002 OMB CHARTSCAN 1400 Portable Data Recorder p n OMB 483 0901 Rev 3 1...
Page 6: ...iv ChartScan User s Manual...
Page 24: ...ChartScan User s Manual...
Page 32: ...2 8 General Information ChartScan User s Manual Notes...
Page 56: ...3 24 ChartScan User s Manual Notes...
Page 124: ...6 20 Calibration ChartScan User s Manual...
Page 126: ...A ii ChartScan User s Manual...
Page 136: ...API Commands Appendix A A 10 ChartScan User s Manual Notes...
Page 176: ...API Commands Appendix A A 50 ChartScan User s Manual...
Page 230: ...Appendix C Registers Data Formats Queries ChartScan User s Manual C 13...
Page 237: ...Registers Data Formats Queries Appendix C C 20 ChartScan User s Manual Notes...
Page 257: ...E 2 ChartScan User s Manual Notes...
Page 265: ...ASCII Code Summary Appendix F F 8 ChartScan User s Manual Notes...
Page 269: ...Abbreviations Appendix H H 2 ChartScan User s Manual Notes...
Page 271: ...ChartScan User s Manual...