User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-78 3700S-901-01 Rev. C / July 2008
channel.setmode()
Remarks
Different channel types contain additional configurable settings. These settings are
grouped together by channel type as described in the following paragraphs.
For digital I/O channels, the mode indicates the direction of the channel (input or
output). The following modes are supported:
channel.MODE_INPUT (default)
channel.MODE_OUTPUT
channel.MODE_PROTECT_OUTPUT
For totalizer channels, the mode indicates the configuration of the channel (edge and
reset). The following modes are supported:
channel.MODE_RISING_EDGE
channel.MODE_FALLING_EDGE
channel.MODE_RISING_TTL_EDGE (default)
channel.MODE_FALLING_TTL_EDGE
channel.MODE_RISING_EDGE_READ_RESET
channel.MODE_FALLING_EDGE_READ_RESET
channel.MODE_RISING_TTL_EDGE_READ_RESET
channel.MODE_FALLING_TTL_EDGE_READ_RESET
For DAC channels, the mode indicates the output of the channel (function and range).
The output is switched off before any mode change is made, and remains off after the
mode has changed. The following modes are supported:
channel.MODE_VOLTAGE_1
channel.MODE_CURRENT_1
channel.MODE_CURRENT_2
channel.MODE_PROTECT_VOLTAGE_1 (default)
channel.MODE_PROTECT_CURRENT_2
channel.MODE_PROTECT_CURRENT_2
Changing the mode setting can impact the power consumption of the card. The
instrument verifies that power is available before changing the mode. If an insufficient
power capability exists, the command generates an error.
Consult the card-specific documentation for more detailed information on mode
settings and functionality.
For digital I/O channels, changing the mode from input to output or from output to input
adds an additional channel delay (see channel.setdelay() (on page 13-72)).
For switch and backplane channels, there is no valid mode setting. Setting a mode on
a specific channel generates an error. If the switch channel is in the range of channels,
the mode is ignored.
The specified channel list must use only one channel type. For example, channel list
“1001:1004” is only valid if Channels 1, 2, 3, and 4 are of the same type. If Channel 3
is a DAC channel, the channel list is invalid and an error is generated.