Agilent Technologies 87130A Switch User Manual


 
4-2 Agilent 87130A Operating and Service Manual
Remote Operation
Programming
Programming
Standard Commands The instrument command language is Standard Commands for
Programmable Instruments (SCPI).
The programming examples and information in this chapter use the SCPI
format. SCPI follows IEEE 488.2-1987 Codes, Formats, Protocols and
Common Commands. Commands are sent over an GPIB bus which follows
IEEE 488.1.
If you are already familiar with Standard Commands for Programmable
Instruments (SCPI) programming techniques, go to the section Example
Speed Calculation on page 4-74 for switching speed information. The
alphabetical listing of commands and command tree can be used for your
own applications.
Language The programming examples in this manual are written in HP BASIC 5.0 for
GPIB.
HP BASIC handles some of the redundant miscellaneous overhead
associated with IEEE Standard 488.1 (GPIB). For instance, when a BASIC
OUTPUT statement is used (by the active controller) to send data to an
GPIB device, a sequence of commands and data are sent over the bus. The
HP BASIC OUTPUT statement causes more than just the output of data to
take place.
OUTPUT 709 “Data”
1. The unlisten command is sent.
2. The talkers address command is sent (the address of the computer).
3. The listeners address command (09) is sent.
4. The data bytes D, a, t, and a are sent.
5. Terminators CR and LF are sent.
All bytes are sent using the GPIBs interlocking handshake to ensure that the
listener has received each byte.
For controllers that are using a programming language other than
HP BASIC, additional steps may have to be added to the program examples
given in this manual. For more information, refer to IEEE Standard 488.1
(GPIB) and IEEE Standard 488.2-1987 Codes, Formats, Protocols and
Common Commands.