Section 3: Functions and features
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
3-68
DMM7510-901-01 Rev. B / May 2015
Analog trigger example — TSP
reset()
-- Select digitize volts function
dmm.digitize.func = dmm.FUNC_DIGITIZE_VOLTAGE
-- Set the range to 10 V
dmm.digitize.range = 10
-- Set the sample rate to 100,000 samples per second
dmm.digitize.samplerate = 100000
-- Fastest aperture (set to 0 for AUTO)
dmm.digitize.aperture = 1e-6
-- Set coupling to DC to measure both AC and DC signal components
dmm.digitize.coupling.type = dmm.COUPLING_DC
-- Set input impedance to automatic
dmm.digitize.inputimpedance = dmm.IMPEDANCE_AUTO
-- Set count to 1000 readings per trigger condition
dmm.digitize.count = 1000
-- Set the buffer size to 100,000
defbuffer1.capacity = 100000
-- Set analog trigger mode to edge with a rising slope and level of 0.5 V
dmm.digitize.analogtrigger.mode = dmm.MODE_EDGE
dmm.digitize.analogtrigger.edge.slope = dmm.SLOPE_RISING
dmm.digitize.analogtrigger.edge.level = 0.5
-- Disable high frequency rejection to allow triggering on a fast edge
dmm.digitize.analogtrigger.highfreqreject = dmm.OFF
-- Digitize readings every time the analog trigger conditions are met
dmm.trigger.digitize.stimulus = trigger.EVENT_ANALOGTRIGGER
-- Push external trigger pulses out synchronized with the analog trigger
trigger.ext.reset()
trigger.extout.logic = trigger.LOGIC_POSITIVE
trigger.extout.stimulus = trigger.EVENT_ANALOGTRIGGER
-- Alternate: Push external trigger pulses out an I/O synced with the analog
trigger
-- digio.line[1].mode = digio.MODE_TRIGGER_OUT
-- trigger.digout[1].logic = trigger.LOGIC_NEGATIVE
-- trigger.digout[1].stimulus = trigger.EVENT_ANALOGTRIGGER
-- trigger.digout[1].pulsewidth = 10e-6
-- Open the graph screen
display.changescreen(display.SCREEN_GRAPH)