3-24
IEEE-488 Bus Operation
Storing readings in buffer
The reading buffer in the Model 2002 is flexible and capable. It has four controls, which are
found in the
•
•
•
•
The following example program sets up the Model 2002 to take 20 readings as fast as it can
into the buffer, then reads the data back after the buffer has filled. The readings will be stored
with the timestamp, etc., but the program reads back only the reading values and timestamp.
susbsystem. There are commands to control:
TRACe
The size of the buffer (in readings).
TRACe:POINts <NRf>
Whether or not extra data is stored with each reading (e.g., channel number, timestamp).
Storing extra data reduces the maximum size of the buffer.
TRACe:EGRoup FULL
TRACe:EGRoup COMPact
Where the data is coming from (before or after the CALCulate1 math post-processing).
TRACe:FEED SENSe1
TRACe:FEED CALCualte1
Select buffer control mode.
TRACe:FEED:CONTrol NEVer
TRACe:FEED:CONTrol NEXT
TRACe:FEED:CONTrol ALWays
TRACe:FEED:CONTrol PRETrigger
include extra data
exclude extra data
store unprocessed readings
store math processed readings
immediately stop storing readings
start now, stop when buffer is full
start now, never stop
start now, stop when pretrigger is satisfied