Trace Subsystem; Clear; Free; Egroup <Name - Keithley 2002 User Manual

Hide thumbs Also See for 2002:
Table of Contents

Advertisement

3.22 :TRACe subsystem

3.22.1
Description
Program fragment
3.22.2
Description
Program fragment
3.22.3
Parameters
Query
Description
Program fragment
The commands in this subsystem are used to configure and control data storage into the buffer.
The commands are summarized in Table 3-14. See paragraph 2.8 for more information about
the buffer.
:TRACe|:DATA
The bar (|) indicates that :TRACe or :DATA can be used as the root command for this subsystem.
From this point on, the documentation in this manual uses :TRACe. If you prefer to use :DATA,
simply replace all the :TRACe command words with :DATA.

:CLEar

:TRACe:CLEar
Clear buffer
This action command is used to clear the buffer of readings. If you do not clear the buffer, a
subsequent store will overwrite the old readings. If the subsequent store is aborted before the
buffer becomes full, you could end up with some "old" readings still in the buffer.
PRINT #1, "output 16; :trac:clear"

:FREE?

:TRACe:FREE?
Read status of memory
This command is used to read the status of storage memory. After sending this command and
addressing the Model 2002 to talk, two values separated by commas are sent to the computer.
The first value indicates how many bytes of memory are available, and the second value indi-
cates how many bytes are reserved to store readings.
PRINT #1, "output 16; :trac:free?"
PRINT #1, "enter 16"
:EGRoup <name>
:TRACe:EGRoup <name>
<name> = FULL
Time stamp included with each stored reading
COMPact Time stamp not included
:EGRoup? Query element group
This command is used to select the element group that is sent with each reading. Common to
both element groups are function, channel (if applicable) and buffer location. The FULL ele-
ment group includes the time stamp. The first reading in the buffer has a time stamp of 0 sec-
onds. The time stamp for all subsequent readings are then referenced to the first reading.
The COMpact element group excludes the time stamp. This allows more readings to be stored
in the buffer (see :POINts).
PRINT #1, "output 16; :trac:egr comp; egr?"
PRINT #1, "enter 16"
' Clear buffer
' Query status of memory
' Get response from 2002
Specify element group
IEEE-488 Reference
' Select compact element group
' Get response from 2002
3-147

Advertisement

Table of Contents
loading

Table of Contents