
CommandSyntax
Programming
3 --- 8
HEnter commands in upper or lowercase.
HPrecede any command with blank characters. Blank characters include
any combinationof the ASCII control characters 00 through 09 and 0B
through 20 hexadecimal (0 through9 and 11 through 32 decimal).
HThe OA 5000 ignores commandsconsisting of any combination of blank
characters, carriage returns, and line feeds.
Abbreviating Commands
Many OA 5000 commands can be abbreviated. These abbreviationsare
shownincapitalsinthecommand’slisting in the Commands section. For
example, the command DISPlay can be entered simply as DISP or dis-
play.
If you use the HEADER command tohave command headers included as
part of query responses, youcan further control whether the returned head-
ers are abbreviated or are full-length.The VERBOSE command lets you
control this.
Concatenating Commands
Youcan concatenate any combination of set commands and queries using
a semicolon(;). The OA 5000 executes concatenated commands in the
order received. Concatenating commandsis useful when you want to avoid
events generated by conflictingsettings —see Conflicts on page 3 ---40.
When concatenating commands and queriesyou must follow these rules:
3. Completelydifferent headers must be separated by both a semicolon
and by the beginning colonon all commands but the first. For example,
the commands ATT:DB 15 and DISABLE OFF would be concatenated
into a singlecommand:
ATT:DB 15;:DIS OFF
4. Never precede a star (*) command with a colon:
ATT:DB 10;*OPC
5. When you concatenate queries, the responsesto all the queries are
concatenated into a singleresponse message. For example, if the
display modeis dB and the attenuator is 20 dB, the concatenated query
DISP?;:ATT:DB?
will return either DISP DB;:ATT:DB 20 ifHeader is set to on, or DB;20
if Header is set to off.
6. Set commands and queries may be concatenatedin the same mes -
sage. For example:
ATT:DB 15;DISP DB;DIS?;:ADJ?
Command Entry