
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-370
3700AS-901-01 Rev. D/June 2018
Details
This attribute is only available for a slot if the installed card supports the selected feature. If the
attribute is not available, the return value is
nil
.
Channels are grouped on the cards by feature sets, so you can use the start and ending channel
numbers to identify a group of channels that supports a particular feature. If the card supports the
feature, the returned value is the number of the starting channel.
If only one channel in the card supports the feature, the starting channel will match the ending
channel number.
The commands support different types of channels:
•
slot
[
slot
].startchannel.amps
: Channel supports amperage measurements
•
slot[
slot
]
.startchannel.analogoutput
: Channel supports a digital analog output (DAC)
•
slot[
slot
].startchannel.digitalio
: Channel supports digital inputs and outputs
•
slot[
slot
].startchannel.isolated
: Channel supports isolated channels
•
slot[
slot
].startchannel.totalizer
: Channel supports totalizer channels
•
slot[
slot
].startchannel.voltage
: Channel supports voltage or two-wire measurements
Example
CardChannels = function(SlotNumber)
if slot[SlotNumber].idn == "Empty Slot" then
print(" Slot is Empty")
else
if (slot[SlotNumber].startchannel.voltage == nil) and
(slot[SlotNumber].endchannel.voltage == nil) then
print(" no voltage channels")
else
print(" Start voltage channel is " ..
slot[SlotNumber].startchannel.voltage)
print(" End voltage channel is " ..
slot[SlotNumber].endchannel.voltage)
end
if (slot[SlotNumber].startchannel.amps == nil) and
(slot[SlotNumber].endchannel.amps == nil) then
print(" no amp channels")
else
print(" Start amp channel is " .. slot[SlotNumber].startchannel.amps)
print(" End amp channel is " .. slot[SlotNumber].endchannel.amps)
end
if (slot[SlotNumber].digio == 1) then
print(" Start digital i/o channel is " ..
slot[SlotNumber].startchannel.digitalio)
print(" End digital i/o channel is " ..
slot[SlotNumber].endchannel.digitalio)
else
print(" no digio channels")
end
if (slot[SlotNumber].totalizer == 1) then
print(" Start totalizer channel is " ..
slot[SlotNumber].startchannel.totalizer)
print(" End totalizer channel is " ..
slot[SlotNumber].endchannel.totalizer)
else