TDS5000B Online Programmer Guide
-- 9 --
Queries
Queries cause the instrument to return status or setting information.
Queries have the structure:
• [:]<Header>?
• [:]<Header>?[<Space><Argument>
[<Coma><Argument>]...]
You can specify a query command at any level within the command
tree unless otherwise noted. These branch queries return information
about all the mnemonics below the specified branch or level. For exam-
ple, HIStogram:STATistics:STDdev? returns the standard deviation of
the histogram, while HIStogram:STATistics? returns all the histogram
statistics, and HIStogram? returns all the histogram parameters.
Headers
You can control whether the instrument returns headers as part of the
query response. Use the HEADer command to control this feature. If
header is on, the query response returns command headers, then for-
mats itself as a valid set command. When header is off, the response
includes only the values. This may make it easier to parse and extract
the information from the response. The table below shows the differ-
ence in responses.
Comparison of Header Off and Header On Responses
Query Header Off Header On
TIME? ”14:30:00” :TIME ”14:30:00”
ACQuire:NUMAVg? 100 :ACQUIRE:NUMAVG 100
Clearing the Instrument
You can clear the Output Queue and reset the instrument to accept a
new command or query by using the selected Device Clear (DCL)
GPIB function. Refer to your GPIB library documentation for further
details about the selected Device Clear operation.
Command Entry
Rules
The following rules apply when entering commands:
H You can enter commands in upper or lower case.
H You can precede any command with white space characters. White
space characters include any combination of the ASCII control
characters 00 through 09 and 0B through 20 hexadecimal (0
through 9 and 11 through 32 decimal).