Section 6: Integrating with a Model 3706A-S using TSP-Link
Model DMM7510 7½ Digit Multimeter Application Manual
6-8
DMM7510-904-01 Rev. D March 2021
-- 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 DMM7510 trigger model that will wait for an input trigger from 3760A-S indicating
a channel is closed before making a measurement. An output trigger will be sent to
the 3706A-S from the 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_DIGITIZE)
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_DIGITIZE)
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_DIGITIZE)
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)
node[2].trigger.model.setblock(16, node[2].trigger.BLOCK_CONFIG_NEXT,
"myScanConfigList")
node[2].trigger.model.setblock(17, node[2].trigger.BLOCK_WAIT,
node[2].trigger.EVENT_TSPLINK1)
node[2].trigger.model.setblock(18, node[2].trigger.BLOCK_MEASURE_DIGITIZE)
node[2].trigger.model.setblock(19, node[2].trigger.BLOCK_NOTIFY,
node[2].trigger.EVENT_NOTIFY1)
node[2].trigger.model.setblock(20, node[2].trigger.BLOCK_BRANCH_COUNTER,
muxChannelsCount[4], 17)
-- Initiate trigger models on both 3706A-S and DMM7510 and wait until finished.
node[2].trigger.model.initiate()
-- To guarantee that the DMM7510 trigger model is at WAIT block (block 2).
delay(2)
node[1].scan.background()
waitcomplete()
-- Open all channels on slots 1 and 4.
node[1].channel.open("slot1, slot4")