![background image](http://html1.mh-extra.com/html/keithley/3700-series/3700-series_reference-manual_3931523178.webp)
Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-34
Document Number: 3700S-901-01 Rev. A / August 2007
channel.getstate
Remarks
Use this command to query for the state of channels in the system. The response will be
a string with a zero or one (comma delimited string of zero or a ones if multiple channels
are requested). A zero indicates the channel is open while a one indicates the channel
is closed. The states will be listed in the order they were specified in the parameter list.
The ch_list parameter indicates the scope of channels affected and may include:
allslots
or
slot
X
(where
X
equals 1 to 6).
channel ranges or individual channels or channel patterns
analog backplane relays.
An error will be generated if:
Syntax error in parameter string.
An empty parameter string.
The specified channel does not support opening and closing like a digital I/O channel.
When the channel list parameter for this function is
slotX
, the response will first list the
channels starting from lowest to highest. After the channels, backplane relays will be
listed starting with lowest bank first and increasing to the highest.
When the channel list parameter for this function is
allslots
, the response will start with
Slot 1 and increase to Slot 6. Each slot is processed completely before going to the
next. Keeping this in mind, all Slot 1 channels and backplane relays are listed before
Slot 2 channels.
Also see
channel.getclose
(on page 9-27)
Query commands
(on page 9-5)
Example
To query the state of the first 20 channels on Slot 4:
MyState = channel.getstate("4001:4020")
To see the state of channels and analog backplane relays in channel pattern called
―mypath‖:
MyPathList = channel.pattern.getimage("mypath")
print(MyPathList)
print(channel.getstate(MyPathList))
channel.open
Function
Opens specified items in channel list parameter.
Usage
channel.open(ch_list)
ch_list
:string listing the items to open. Items can include channels, backplane relays,
and channel patterns.