Agilent Technologies 87130A manual Programming Syntax, Talking to the Switch Driver, Example

Models: 87130A

1 140
Download 140 pages 20.39 Kb
Page 45
Image 45
Talking to the Switch Driver

Talking to the Switch Driver

Example

Programming

Conventions

Remote Operation

Programming Syntax

Programming Syntax

In general, computers acting as controllers communicate with the switch driver by passing messages over a remote interface using the I/O statements provided in the instruction set of the controller’s host language. Therefore, the messages for programming the switch driver described in this manual, will normally appear as ASCII character strings imbedded inside the I/O statements of your controller’s program.

For example, the HP 9000 Series 300 BASIC and PASCAL language systems use the OUTPUT statement for sending program messages to the switch driver, and the ENTER statement for receiving response messages from the switch driver.

Messages are placed on the bus by using an output command and passing the device selector, program message, and terminator. Passing the device selector ensures that the program message is sent to the correct interface and instrument.

The following query command reads out the firmware datecode:

OUTPUT <device selector>;“:SYSTEM:VERSION?”

where <device selector> represents the address of the device being programmed.

The programming examples in this manual are written in HP Basic 5.0 for an GPIB controller compatible system.

The actual OUTPUT command used when programming is dependent on the controller and the programming language being used.

Angular brackets “< >,” in this manual, enclose words or characters that symbolize a program code parameter or a bus command.

Information that is displayed in quotes represents the actual message that is sent across the bus. The message terminator (NL or EOI) is the only additional information that is also sent across the bus.

On most controllers, it is not necessary to type in the actual <terminator> at the end of the program message. These controllers automatically supply the program message terminator when the return key is pressed.

Agilent 87130A Operating and Service Manual 4-3

Page 45
Image 45
Agilent Technologies 87130A manual Programming Syntax, Talking to the Switch Driver, Programming Conventions, Example