Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-75
channel.gettype()
This function returns the type associated with a channel.
Usage
type = channel.gettype("channelList")
Returns a comma-delimited list of the type of channels in channelList
String specifying the channels to query, using normal channelList syntax
Details
The channel type is defined by the physical hardware of the card on which the channel exists. The
following are valid channel types:
• channel.TYPE_SWITCH or 1
• channel.TYPE_BACKPLANE or 2
• channel.TYPE_DAC or 8
• channel.TYPE_DIGITAL or 4
• channel.TYPE_TOTALIZER or 16
Refer to the card-specific documentation for more information about the channel types available for
your card.
Example 1
print(channel.gettype("1001, 1911"))
Query the channel type of channel 1 and
analog backplane relay 1 of bank 1 in slot 1,
assuming a 3720.
Output:
1,2
print(channel.gettype("slot6"))
Query the channel types on slot 6, assuming
a 3750.
Output:
4,4,4,4,4,16,16,16,16,8,8
This shows that channels 1 to 5 are digital
I/O types, channels 6 to 9 are totalizer types,
and channels 10 and 11 are DAC types.