9: Integrating with a Model 3706A-S using TSP-Link Model DMM7510 7½ Digit Multimeter
9-6 DMM7510-900-01 Rev. B / May 2015
--[[
Create a configuration list on Model DMM7510 named "myScanConfigList"
Index 1 is DCV 100 mV range, 10 channel
Index 2 is DCV 10 V range, 20 channel
Index 3 is ACV 1 V range, 9 channel
Index 4 is Resistance 4W, 20 channel
]]
node[2].dmm.measure.configlist.create("myScanConfigList")
node[2].dmm.measure.func = node[2].dmm.FUNC_DC_VOLTAGE
node[2].dmm.measure.range = 10
node[2].dmm.measure.nplc = 1
node[2].dmm.measure.configlist.store("myScanConfigList") --index1
node[2].dmm.measure.func = node[2].dmm.FUNC_DC_VOLTAGE
node[2].dmm.measure.range = 1000
node[2].dmm.measure.autozero.enable = node[2].dmm.OFF
node[2].dmm.measure.configlist.store("myScanConfigList") --index2
node[2].dmm.measure.func = node[2].dmm.FUNC_AC_VOLTAGE
node[2].dmm.measure.range = 10
--node[2].dmm.measure.autozero.enable = node[2].dmm.OFF
node[2].dmm.measure.configlist.store("myScanConfigList") --index3
node[2].dmm.measure.func = node[2].dmm.FUNC_4W_RESISTANCE
node[2].dmm.measure.autorange = dmm.ON
node[2].dmm.measure.autozero.enable = node[2].dmm.OFF
node[2].dmm.measure.configlist.store("myScanConfigList") --index4
--Handshaking between the Model DMM7510 and Model 3706A-S
--Configure Model DMM7510 TSP-Link line 1 to input trigger from Model 3706A-S
node[2].tsplink.line[1].mode = node[2].tsplink.MODE_TRIGGER_OPEN_DRAIN --input
from Model 3706A-S
--Configure Model DMM7510 TSP-Link line 2 to output trigger to Model 3706A-S
node[2].tsplink.line[2].mode = node[2].tsplink.MODE_TRIGGER_OPEN_DRAIN --output to
Model 3706A-S
--Clear Model DMM7510 TSP-Link event detectors
node[2].trigger.tsplinkin[1].clear()
node[2].trigger.tsplinkin[2].clear()
--Configure Model DMM7510 TSP-Link line 1 input trigger to detect falling edge
triggers
node[2].trigger.tsplinkin[1].edge = node[2].trigger.EDGE_FALLING
--Configure Model DMM7510 TSP-Link line 1 output trigger to output negative pulses
at 10 us
--pulse width when NOTIFY1 event is detected
node[2].trigger.tsplinkout[2].logic = node[2].trigger.LOGIC_NEGATIVE
node[2].trigger.tsplinkout[2].pulsewidth = 10e-6
node[2].trigger.tsplinkout[2].stimulus = node[2].trigger.EVENT_NOTIFY1
--Configure Model 3706A-S TSP-Link line 1 to output trigger to Model DMM7510
node[1].tsplink.trigger[1].mode = node[1].tsplink.TRIG_FALLING --output to Model
DMM7510
--Configure Model 3706A-S TSP-Link line 2 to input trigger from Model DMM7510
node[1].tsplink.trigger[2].mode = node[1].tsplink.TRIG_FALLING --input from Model
DMM7510
--Clear Model 3706A-S TSP-Link event detectors
node[1].tsplink.trigger[1].clear()
node[1].tsplink.trigger[2].clear()
--Configure scan start stimulus to and input trigger on TSP-Link line 2
node[1].scan.trigger.arm.stimulus = 0
node[1].scan.trigger.channel.stimulus = node[1].tsplink.trigger[2].EVENT_ID
node[1].tsplink.trigger[1].stimulus = node[1].scan.trigger.EVENT_CHANNEL_READY
北京海洋兴业科技股份有限公司(证券代码:839145)