
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-84
3700AS-901-01 Rev. D/June 2018
Details
For digital I/O channels, only a width of 1, 2, 3, or 4 is supported. Any information (bits) greater than
the specified
width
is returned as zero. For example, if channels 1 and 2 are both 255, a reading
with a
width
of 1 returns 255 and a
width
of 2 with channel 1 returns 65535. Values read from
outputs reflect their current setting. If the read channel is in the overload state, the read value is
indeterminate.
For widths greater than 1, the specified channel occupies the least significant byte. For example,
reading the value 4293844224 (hex ffeedd00) from channel 1 with a
width
of 4 indicates channel 1
is 0 (hex 0), channel 2 is 221 (hex dd), channel 3 is 238 (hex ee), and channel 4 is 255 (hex ff).
Reading the value of 0 (hex 0) from channel 1 with a
width
of 1 indicates channel 1 is 0 (hex 0) and
other channels are not included. Totalizer and DAC channels do not support a
width
other than 1
and result in an error if specified.
Switch and backplane channels are not supported.
For a channel with a power state of
OFF
, the returned value is
DISABLED
.
Example
count = channel.read("1006")
Read the count from the first totalizer
channel (channel 6) in slot 1, assuming a
3750.
Also see
None
channel.reset()
This function resets the specified channel list items to factory default settings.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
channel.reset("
channelList
")
channelList
A string that lists the items to reset; the string can include:
▪
allslots
▪
slot
X
, where
X
is the slot number
▪
channel patterns
▪
channels, including a range of channels
▪
analog backplane relays