
6 Remote control
6.1 Basis of Remote Control
613
Library applied in UNIX and Winsock Library applied in Windows constitute the two common socket
libraries.
The socket of the signal/spectrum analyzer is compatible with the Berkeley socket and Winsock through the
application program interface (API). Besides, it is also compatible with other standard socket API. The
command will be sent by the socket program to control the signal/spectrum analyzer through SCPI commands.
The signal/spectrum analyzer has a fixed socket port number of 5000.
6.1.1.2 GPIB Interface
As the only bus dedicated to instrument control, GPIB is still widely applied in automatic test systems. The
4051 signal/spectrum analyzer integrated GPIB interface on the rear panel. In order to realize remote control,
the master control computer should be configured with the GPIB bus card, drive program and VISA library in
advance. During communication, the controlled instrument is addressed by the master control computer
according to the GPIB bus address and users may change such GPIB address to prevent communication
failure caused by address conflict in the entire system.
Refer to ANSI/IEEE 488.1-1987 and ANSI/IEEE 488.2-1992 for details of descriptions of GPIB and relevant
interfaces. For details, visit the IEEE website http://www.ieee.org.
Pay attention to the following when connecting the GPIB interface:
Only 15 pieces of equipment are allowed at most in the test system connected with GPIB bus;
The total length of the transmission cable must not exceed 20m or twice of the number of instruments in
the system.
Generally, the maximum length of the transmission cable between devices must not exceed 2m.
For parallel connection of instruments, use ―or‖ connecting lines.
Connect the terminal of the IEC bus cable to the instrument or controlling computer.
6.1.2 Message
Messages transmitted through the data lines are divided into the following two types.
1)
Interface message
Interface messages are unI/Que to GPIB bus and only instruments with GPIB bus function are able to respond
to such messages. When the master control computer sends interface messages to the instrument, the attention
line should be lowered at first before interface messages can be transmitted to the instrument via the data line.
2)
Instrument message
For the structure and grammar of instrument messages, refer to ―5.1.4 SCPI Commands‖. According to the
transmission direction, instrument messages can be divided into the command and instrument response.
Unless otherwise specified, the same method should be applied for use of instrument messages with the
remote control interface.
a)
Commands
The command (programming message) is a kind of message transmitted by the master control computer to the
instrument, used for remote control of the instrument function and query of the status information. Commands
are divided into the following two types:
According to the influence on the instrument:
—
Setting command: change the instrument setting status, such as resetting, frequency setting, etc.
—
Query command: inquire and return data, such as instrument identification or parameter query. The query
command ends with a suffix question mark.
According to the definition in the standard:
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: ......