
6 Remote control
6.1 Basis of Remote Control
617
4)
Command tree
Special instrument commands are used in most of remote control programs. To analyze this kind of command,
the SCPI structure should be similar to the file system, known as the command tree.
The top command is the root command, referred to as the ―root‖. Follow the specific path of the tree structure
to next layer in command analysis. Example: :POWer:ALC:SOURce
?
Where, ―:POWer‖ refers to AA,
―:ALC‖ refers to BB, and ―:SOURce‖ refers to GG. The whole command path is (:AA:BB:GG).
The command interpreter, a module of the instrument software, is dedicated to analysis of each received SCPI
command. It is used to divide the command into separate command elements according to a series of rules to
distinguish command tree paths. The current command should be kept unchanged after analysis, so as to
analyze the subsequent command more rapidly and efficiently as the same command keyword may be used in
various paths. The current command path should be set as the root after the instrument is started or reset
(*RST).
5)
Command parameter and response
Table 6.4 SCPI Command Parameters and Response Types
Parameter type
Response Data Types
Numeric
Real or integer
Extended Numeric
Integer
Discrete
Discrete
Boolean
Numeric Boolean
String
String
Block
Block with definite length
Block of uncertain length
Non-decimal Numeric
Hexadecimal system
Octal system
Binary system
SCPI defines different data formats for use in program and response messages. It does this to accommodate
the principle of forgiving listening and precise talking. Refer to IEEE488.2 for more information. Forgiving
listening means the command and parameter formats are flexible. For example, the signal/spectrum analyzer
is set with a frequency offset status command: FREQuency:OFFSet:STATe ON|OFF|1|0. The following
command formats are to turn on the frequency offset mode:
:FREQuency:OFFSet:STATe ON, :FREQuency:OFFSet:STATe 1,
:FREQ:OFFS:STAT ON, :FREQ:OFFS:STAT 1.
Various parameter types correspond to one or more response data type(s). The numeric type of the parameter
will change into the data type in query. Response data are accurate, strictly referred to as ―accurate telling‖.
For example, if you query the power status (:POWer:ALC:STATe?) when it is on, the response is always 1,
regardless of whether you previously sent :POWer:ALC:STATe1 or :POWer:ALC:STATe ON.
a)
Numerical parameter
Special instrument commands and general commands can be expressed as numeric parameters. All kinds of
common decimal counting can be applied for reception of numeric parameters, including the plus or minus,
decimal and scientific counting methods. If one device can only receive the specific numeric type, such as the
integer, the received numeric parameter will be automatically rounded.
Summary of Contents for 4051 Series
Page 5: ......
Page 6: ......
Page 7: ......
Page 14: ......
Page 18: ......
Page 68: ......
Page 225: ...5 Menu 5 1 Menu structure 211 5 1 3 13 Maker Mkr Fig 5 3 13 Marker Menu...
Page 241: ...5 Menu 5 1 Menu structure 227 5 1 4 13 Maker Mkr Fig 5 4 13 Marker Menu...
Page 259: ...5 Menu 5 1 Menu structure 245 5 1 5 13 Maker Mkr Fig 5 5 13 Marker Menu...
Page 266: ...5 Menu 5 1 Menu structure 252 5 1 6 5 Sweep Sweep Fig 5 6 5 Sweep Menu...
Page 275: ...5 Menu 5 1 Menu structure 261 5 1 6 13 Maker Mkr Fig 5 6 13 Marker Menu...
Page 277: ...5 Menu 5 1 Menu structure 263 5 1 6 15 Peak Search Peak Search Fig 5 6 15 Peak Search Menu...
Page 280: ...5 Menu 5 1 Menu structure 266 5 1 7 3 Span X Scale Span Fig 5 7 3 Span Menu...
Page 291: ...5 Menu 5 1 Menu structure 277 5 1 7 13 Maker Mkr Fig 5 7 13 Marker Menu...
Page 296: ...5 Menu 5 1 Menu structure 282 5 1 8 3 Span X Scale Span Fig 5 8 3 Span Menu...
Page 306: ...5 Menu 5 1 Menu structure 292 5 1 8 12 Marker Marker Fig 5 8 12 Marker Menu...
Page 307: ...5 Menu 5 1 Menu structure 293 5 1 8 13 Maker Mkr Fig 5 8 13 Marker Menu...
Page 309: ...5 Menu 5 1 Menu structure 295 5 1 8 15 Peak Search Peak Search Fig 5 8 15 Peak Search Menu...
Page 312: ...5 Menu 5 1 Menu structure 298 5 1 9 3 Span X Scale Span Span 4 000000 GHz Fig 5 9 3 Span Menu...
Page 323: ...5 Menu 5 1 Menu structure 309 5 1 9 13 Maker Mkr Fig 5 9 13 Marker Menu...
Page 328: ...5 Menu 5 1 Menu structure 314 5 1 10 3 Span X Scale Span Fig 5 10 3 Span Menu...
Page 329: ...5 Menu 5 1 Menu structure 315 5 1 10 4 Bandwidth BW Fig 5 10 4 Bandwidth Menu...
Page 333: ...5 Menu 5 1 Menu structure 319 5 1 10 7 Trace Trace Fig 5 10 7 Trace Menu...
Page 340: ...5 Menu 5 1 Menu structure 326 5 1 10 13 Maker Mkr Fig 5 10 13 Marker Menu...
Page 345: ...5 Menu 5 1 Menu structure 331 5 1 11 3 Span X Scale Span Fig 5 11 3 Span Menu...
Page 357: ...5 Menu 5 1 Menu structure 343 5 1 11 13 Maker Mkr Fig 5 11 13 Marker Menu...
Page 359: ...5 Menu 5 1 Menu structure 345 5 1 11 15 Peak Search Peak Search Fig 5 11 15 Peak Search Menu...
Page 656: ......