Measurement Computing TempScan/1100 User Manual
Page 99

TempScan / MultiScan User's Manual
889897
System Operation 5-9
Part 1 – The current Acquisition Buffer status. The Acquisition Buffer currently contains 6 available Trigger Blocks,
and 20216 available scans.
Part 2 – The oldest scan in the Acquisition Buffer has been read. The program example demonstrates how the
R1
command will read the oldest scan currently residing in the buffer.
(1)
PRINT#1, “OUTPUT07;U6X”
(2)
PRINT#1, “ENTER07”
(3)
INPUT A$
0000006,0020216,-0000100,12:51:43.100,03/24/97,0001004,
13:53:01.300,03/24/97,0001254,01
(4)
PRINT#1, “OUTPUT07;R1X”
(5)
PRINT#1, “ENTER07”
(6)
INPUT A$
+0234.20 -0019.40 +0001.40 +0023.60
(7)
PRINT#1, “OUTPUT07;U6X”
(8)
PRINT#1, “ENTER07”
(9)
INPUT A$
0000006,0020215,-0000099,12:51:43.100,03/24/97,0001004,
13:53:01.300,03/24/97,0001254,01
•
Line 1: Request the current status of the Acquisition Buffer.
•
Line 2: Retrieve the status.
•
Line 3: The screen will show the current status of the Acquisition Buffer.
Before the scan is read, the Buffer Status String response indicates that the total number of Trigger Blocks available in
the buffer is 6 (7-1), and the total number of scans available in the buffer is 20216 (20567-351), where the previous
Trigger Block of 351 scans has already been read out and erased (now empty). Furthermore, it shows that the current
location of the Read Pointer is at Pre-Trigger scan -100 in the current Trigger Block. This particular scan can be retrieved
as follows:
•
Line 4: Get the oldest scan.
•
Line 5: Get the response.
•
Line 6: The screen will show the single-scan data for each of the four (4) configured channels.
•
Line 7: Now, get the current status of the Acquisition Buffer.
•
Line 8: Get the response.
•
Line 9: The screen will show the new current status of the Acquisition Buffer.
Notice that after the scan is read, there are now 20215 (20216-1) scans available in the buffer and the current location of
the Read Pointer is at Pre-Trigger scan -099.
Read (R1) Buffer Operation – Multiple Trigger Blocks, Parts 1 & 2 (of 4)
Buffer
Empty
Empty
Read Pointer >
Scan -100
Trigger Block
1 Pre-Trigger
Scans
Scan -099
…
Trigger Scan >
Scan 000
Trigger Block
1 Post-Trigger
Scans
Scan 001
…
Stop Scan >
Scan 400
Scan 401
Trigger Block
1 Post-Stop
Scans
…
End Scan >
Scan 650
Block 2
Trigger Blocks
2 through 5
Block 3
Block 4
Scan 18660 >
Block 5
(3) The oldest complete Trigger Block in
the Acquisition Buffer has been read.
Part 3 – The oldest complete Trigger Block in the Acquisition Buffer has been read. The program example
demonstrates how the
R2
command will read the oldest complete Trigger Block currently residing in the buffer.