Tektronix OA 5000 TV Cables User Manual


 
Command Syntax
OA 5000 Series User Manual
3 --- 7
Commands
Commands cause the OA 5000 to perform a specific function or change one
of its settings. Commands have the structure:
H [:]<Header>[<Space><Argument>[<Separator><Argu-
ment>]...]
Queries
Queries cause the OA 5000 to return information about its status or settings.
Queries have the structure:
H [:]<Header>?
H [:]<Header>?[<Space><Argument>[<Separator><Argu-
ment>]...]
You may use only a part of the header in a query command. When you do
this, the instrument returns information about all the possible mnemonics
that you have left unspecified. For example, ATT:DB? returns the current
setting in absolute dB units, while ATT? returns the setting in absolute units
and units relative to the reference.
Headers in Query Responses
You can control whether or not headers are returned by the OA 5000 as part
of the query response. Use the HEADER command to control this feature. If
header is on, command headers are returned as part of the query, and the
query response is formatted as a valid set command. When header is off,
only the values are sent back in the response, which may be easier to parse
and to extract the information. Table 3-3 shows the difference in responses.
Table 3 -3: Comparison of Header On and Off Responses
Query
Header Off Response Header On Response
DISP? DB :DISP DB
ATT:DB? 32.53 :ATT:DB 32.53