Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-105
channel.write()
This function writes a value to a channel.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
channel.write("
channelList
",
value
)
channel.write("
channelList
",
value
,
width
)
channelList
The channels to set, using standard channel naming
value
The value to be written to the channel (must be decimal value)
width
Value that specifies the channel width of the write
Details
For widths greater than 1, the specified channel occupies the least significant byte. For example,
writing the value of 4278255360 (hexadecimal FF00FF00) to channel 1 with a width of 4 sets channel
1 to 0, channel 2 to 255 (hexadecimal FF), channel 3 to 0, and channel 4 to 255 (hexadecimal FF).
Writing the value of 4278255360 to channel 1 with a width of 1 sets channel 1 to 0 and leaves other
channels untouched.
You must use decimal values when sending commands to the Series 3700A.
For digital I/O channels, only widths of 1, 2, 3, or 4 are supported. All other widths are ignored. Values
written to inputs are ignored. If no specified channel is set for output, then an error is generated. If a
width crosses channels, then only the channels set to output are affected.
Totalizers, DACs, and switch channels do not support a width other than 1. Specifying a width greater
than 1 results in an error.
For a channel with a power state of
OFF
, an error is generated. No action is taken on any channel in
the specified channel list.
For DAC channels, the value is expected to be the set floating-point voltage or current. Also, an error
is generated if the value is out of range. No action is taken on any channel in the specified channel
list.
For digital I/O channels, the value becomes the setting of the digital output.
For totalizer channels, the value becomes the new current totalizer count.
The time it takes to execute the write command is affected by the channel delay setting.
Example
channel.write("1001", 33)
channel.write("1006", 0)
Output a value of 33 to digital I/O channel 1.
Set totalizer channel 6 on slot 1 (assuming a
3750 card) to 0.
Also see
None