3-6
Document number: S46-901-01 Rev. F / March 2011
Section 3: Operation
S46/S46T/S46L Microwave Switch System Instruction Manual
Multiple response messages
If you send more than one query command in the same program message, the multiple response
messages for all the queries are sent to the computer when the relay unit is addressed to talk. The
responses are sent in the order the query commands were sent and are separated by
semicolons (;). Items within the same query are separated by commas (,). The following example
shows the response message for a program message that contains four single item query
commands:
0;1;1;0
Response message terminator (RMT)
Each response is terminated with an LF (line feed) and an EOI (end or identify). The following
example shows how a multiple response message is terminated:
0;l;l;0 <RMT>
Message exchange protocol
Two rules summarize the message exchange protocol:
Rule 1:
You must always tell the S46/S46T/S46L what to send to the computer.
Perform the following two steps to send information from the instrument to the computer:
1.
Send the appropriate query command(s) in a program message.
2.
Address the S46/S46T/S46L to talk.
Rule 2:
The computer must receive the complete response message before another program
message can be sent to the instrument.
GPIB commands
This section contains S46/S46T/S46L specific commands for the three different subsystems:
•
•
•
ROUTe commands
A list of the
ROUTe
commands is contained in
.
ROUTe
commands are used to open and
close channels, query closed channels, and to read and reset the relay closure count. The
brackets indicate that
[:ROUTe]
is optional and need not be included in the command message.
Following the table are details defining the use of the specific
ROUTe
subsystem commands.
Table 3-6
:ROUTe subsystem command set
Commands
Description
[:ROUTe]
Root path to
:ROUTe
subsystem commands.
:CLOSe <clist>
Enter the list of channels to close.
:CLOSe?
Query which channels are closed. Returns a <clist> of closed channels.
:COUNt?
Returns 32 (28 for the S46L) comma-separated variables representing the
closure count on each of the 32 (28 for the S46L) channels.
:RCOunt <clist>
Resets (sets to zero) the closure count for channels specified in <clist>.