Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-28
Document Number: 3700S-901-01 Rev. A / August 2007
channel.getclose
Example
To see the channels and analog backplane relays that are closed on Slot 5:
ClosedSlot5 = channel.getclose("slot5")
To see all channels and analog backplane relays that are closed in a system:
AllClosed = channel.getclose("allslots")
To see all channels closed within a pattern
called ―mychans‖:
ClosedMyChans = channel.getclose("mychans")
To see all channels closed from Channel 1 to 20 on Slot 3:
ClosedRange = channel.getclose("3001:3020")
To see channels 1, 2, 3, 5 and analog backplane relay 1 and 2 in bank 1 on Slot 3:
ClosedOnes = channel.getclose("3001, 3002,
3003, 3005, 3911, 3912")
channel.getcount
Function
Returns a string with the close counts for specified items.
Usage
counts = channel.getcount(ch_list)
ch_list
: string listing the items to query. Items can include channels, backplane relays,
and channel patterns.
counts:
comma delimited string listing the channel close counts
Remarks
This function will return a comma delimited string of numbers representing the close
counts for each channel specified in parameter list. The count values will be returned
in the same order as the channels were specified. The close counts for an analog
backplane relay may be included in the ch_list parameter.
The parameter string may contain ―slotX‖, where X equals 1 to 6, or ―allslots‖. It may
also contain a pattern which will get translated into the channels and analog backplane
relays. Use the channel pattern get command (see
channel.pattern.getimage
(on page
9-37)) with the pattern name to see the channels that the close counts pertain to along
with the channel order.
An error will be generated if:
syntax error in parameter string.
an empty parameter string or parameter string with just spaces.
a specified channel is invalid.
the channel number does not exist for slot specified.
slot is empty.
does not have a count closure associated with it.
If an error is detected, a nil value is returned. No partial list of close counts is returned.
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.