If only one channel in the card supports the feature, the ending channel matches the starting channel
number.
The commands support different types of channels:
• slot[slot].endchannel.amps: Channel supports amperage measurements
• slot[slot].endchannel.analogoutput: Channel supports a digital analog output (DAC)
• slot[slot].endchannel.digitalio: Channel supports digital inputs and outputs
• slot[slot].endchannel.isolated: Channel supports isolated channels
• slot[slot].endchannel.totalizer: Channel supports totalizer channels
• slot[slot].endchannel.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
print(" no totalizer channels")
end
if (slot[SlotNumber].startchannel.analogoutput == nil) and
(slot[SlotNumber].endchannel.analogoutput == nil) then
print(" no analog output channels")
else
print(" Start analog output channel is " ..
slot[SlotNumber].startchannel.analogoutput)
print(" End analog output channel is " ..