User`s guide
4-4
Programming
General Information
switch layers, the switch layers are referred to by the word LAYER in the
ROUTE:LAYER:CHANNEL command. The numeric value at the end of the
mnemonic LAYER selects the switch block to which the
ROUTE:LAYER:CHANNEL command should be applied. For example, in the
following program statement, the command is applied to switch layer 2 of the
instrument.
OUTPUT 711;":ROUTE:LAYER2:CHANNEL A2,B4"
The following HP BASIC statement command moves the switch on switch
layer 1 to channel 1 of port A and channel 1 of port B:
OUTPUT 711;":ROUTE:LAYER1:CHANNEL A1,B1"
This next example sets port A to channel 2 and port B to channel 5:
OUTPUT 711;":ROUTE:LAYER1:CHANNEL A2,B5”
To learn more about this command, refer to “[:ROUTe]:[LAYer]:CHANnel” on
page 4-27.
The current switch setting can be queried. The query
:ROUTE:LAYER1:CHANNEL? places the current channel setting on layer 1 in
the output queue. In HP BASIC, the controller input statement:
ENTER <device address>;Setting$
passes the value across the bus to the controller and places it in the variable
Setting$.
Returning the switch to manual control
To return the switch to manual control after remote operation, press
LOCAL
.
Response generation
As defined by IEEE 488.2, query responses may be buffered for the following
conditions:
• When the query is parsed by the instrument.
• When the controller addresses the instrument to talk so that it may read the
response.
The responses to a query are buffered when the query is parsed.