Appendix C
Configuration Aspects for Programmers
NetScan User’s Manual
C-25
The
R2
command will read the oldest available trigger block in the Acquisition Buffer. For instance, continuing
with the previous example:
PRINT#1,"U6X"
‘ Request the current status of the Acquisition Buffer
LINE INPUT #1,A$
‘ Retrieve it.
PRINT A$
‘ Screen shows...
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,"R2X"
‘ Request the oldest trigger block
LINE INPUT#1, A$
‘ Retrieve it.
PRINT A$
‘ Screen shows (4 channels x 350 scans) 1400 readings
+0234.20-0019.40+0001.40+0023.60....
PRINT#1,"U6X"
‘ Request the current status of the Acquisition Buffer
LINE INPUT#1, A$
‘ Retrieve it.
PRINT A$
‘ Screen shows...
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,"U6X"
‘ Request the current status of the Acquisition Buffer
LINE INPUT#1, A$
‘ Retrieve it.
PRINT A$
‘ Screen shows...
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,"R3X"
‘ Request all scan data in the buffer.
LINE INPUT#1, A$
‘ Retrieve it.
PRINT A$
‘ Screen shows (4 channels x 19865 scans) 79460 readings
+0234.20-0019.40+0001.40+0023.60....
PRINT#1,"U6X"
‘ Request the current status of the Acquisition Buffer
LINE INPUT#1, A$
‘ Retrieve it.
PRINT A$
‘ Screen shows...
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-NETSCAN 1500
Page 6: ...iv NetScan User s Manual...
Page 18: ...1 12 Configuring and Starting NetScan NetScan User s Manual Notes...
Page 38: ...3 8 General Information and Specifications NetScan User s Manual Notes...
Page 82: ...4 44 ChartView Software Reference NetScan User s Manual Notes...
Page 118: ...6 20 Calibration NetScan User s Manual...
Page 140: ...A ii NetScan User s Manual...
Page 192: ...API Command Reference Appendix A A 52 NetScan User s Manual Notes...
Page 237: ...Appendix D Registers Data Formats Queries NetScan User s Manual D 13...
Page 244: ...NetScan Program Examples Appendix E E 2 NetScan User s Manual...
Page 248: ...ASCII Code Summary Appendix F F 4 NetScan User s Manual Notes...
Page 250: ...NetScan Error Messages Appendix G G 2 NetScan User s Manual Notes...
Page 252: ...Abbreviations Appendix H H 2 NetScan User s Manual Notes...
Page 254: ...NetScan User s Manual...