![background image](http://html1.mh-extra.com/html/racal-instruments/1256e/1256e_manual_3132597125.webp)
1256E User Manual
Racal Instruments
©
2002
SCPI Command Basics 5-29
Specifying
Channels in
Commands
To select a single channel in a command, both the address of the
relay plug-in which contains the relay, and the channel number for
the relay must be specified. The syntax to describe a single
channel is:
(@<address> ( <channel> ) )
where
<address>
This is a number in the range “1”
to “8” and corresponds to the slot
number (1 through 8) of the relay
plug-in.
<channel>
This is a number which identifies
a single relay to operate. The
range of valid values for
<channel> depends on the
particular Adapt-a-Switch plug-in
being controlled.
So, to close the relay channel 17 on the plug-in with address 3
(slot 3), use the command:
CLOSE (@3(17))
Multiple channels for a single plug-in may be specified using the
syntax:
(@<address>(<channel>,<channel>...))
So the command:
CLOSE (@3(1,5,9,11))
may be used to close channels 1, 5, 9, and 11 on the plug-in with
address 3.
A range of channels for a single plug-in may be specified by using
the syntax:
(@<address>(<channel1>:<channel2>))
This format indicates that all relays between <channel1> and
<channel2> are to be operated. The command:
CLOSE (@3(1:10))
closes channels 1 through 10, inclusive, on the relay plug-in with
address 3.