7½ Digit Multimeter User's Manual Section 9: Integrating with a Model 3706A-S using TSP-
DMM7510-900-01 Rev. B / May 2015 9-7
node[1].scan.create("")
--Create a scan list
muxChannels = {}
muxChannels[1] = "1001:1020" --DCV 1
muxChannels[2] = "1021:1030" --DCV 2
muxChannels[3] = "1031:1040" --ACV
muxChannels[4] = "4001:4020" --4W RES
muxChannelsCount = {}
lastcount = 0
node[1].channel.setpole("4001:4020", 4)
node[1].channel.setbackplane("1001:1020", "1911")
node[1].channel.setbackplane("1021:1030", "1921")
node[1].channel.setbackplane("1031:1040", "1921")
node[1].channel.setbackplane("slot4", "4911,4922")
--Get channel count for each measurement configuration
for i = 1, table.getn(muxChannels) do
node[1].scan.add(muxChannels[i])
muxChannelsCount[i] = node[1].scan.stepcount - lastcount
lastcount = node[1].scan.stepcount
end
--Define the number of times the scan will run
node[1].scan.scancount = 1
node[1].scan.bypass = node[1].scan.ON
node[1].scan.mode = node[1].scan.MODE_FIXED_ABR
--Create a Model DMM7510 trigger model that will wait for an input trigger from
Model 3760A-S indicating a channel is closed before making a measurement. An
output trigger will be sent to the Model 3706A-S from the Model DMM7510 upon
completing the measurement before closing another the channel
node[2].defbuffer1.capacity = node[1].scan.stepcount
node[2].trigger.model.setblock(1, node[2].trigger.BLOCK_CONFIG_RECALL,
"myScanConfigList", 1)
node[2].trigger.model.setblock(2, node[2].trigger.BLOCK_WAIT,
node[2].trigger.EVENT_TSPLINK1)
node[2].trigger.model.setblock(3, node[2].trigger.BLOCK_MEASURE)
node[2].trigger.model.setblock(4, node[2].trigger.BLOCK_NOTIFY,
node[2].trigger.EVENT_NOTIFY1)
node[2].trigger.model.setblock(5, node[2].trigger.BLOCK_BRANCH_COUNTER,
muxChannelsCount[1], 2)
node[2].trigger.model.setblock(6, node[2].trigger.BLOCK_CONFIG_NEXT,
"myScanConfigList")
node[2].trigger.model.setblock(7, node[2].trigger.BLOCK_WAIT,
node[2].trigger.EVENT_TSPLINK1)
node[2].trigger.model.setblock(8, node[2].trigger.BLOCK_MEASURE)
node[2].trigger.model.setblock(9, node[2].trigger.BLOCK_NOTIFY,
node[2].trigger.EVENT_NOTIFY1)
node[2].trigger.model.setblock(10, node[2].trigger.BLOCK_BRANCH_COUNTER,
muxChannelsCount[2], 7)
node[2].trigger.model.setblock(11, node[2].trigger.BLOCK_CONFIG_NEXT,
"myScanConfigList")
node[2].trigger.model.setblock(12, node[2].trigger.BLOCK_WAIT,
node[2].trigger.EVENT_TSPLINK1)
node[2].trigger.model.setblock(13, node[2].trigger.BLOCK_MEASURE)
node[2].trigger.model.setblock(14, node[2].trigger.BLOCK_NOTIFY,
node[2].trigger.EVENT_NOTIFY1)
node[2].trigger.model.setblock(15, node[2].trigger.BLOCK_BRANCH_COUNTER,
muxChannelsCount[3], 12)
北京海洋兴业科技股份有限公司(证券代码:839145)