User manual

Series 3700 System Switch/Multimeter Reference Manual Section 8: Scanning
3700S-901-01 Rev. C / July 2008 8-15
-- Set up digital I/O line 1 to detect a falling edge
trigger.
digio.trigger[1].mode = digio.TRIG_FALLING
-- Set each channel so it closes with a digio 1 event
trigger.
scan.trigger.channel.stimulus = digio.trigger[1].EVENT_ID
-- Set bypass to off so that first channel needs to see
trigger before closing.
scan.bypass = scan.OFF
-- Create scan for Channels 1 to 60 on the card installed
in Slot 3.
scan.create('3001:3060', 'mydcv')
-- Initiate the scan to execute in the background and save
readings to a buffer called "mybuffer."
scan.background(mybuffer)
Example 3:
Command list to scan the entire card while measuring 4-wire ohms using a
background scan (see the comments for other specifics).
-- Reset the Series 3700 to factory defaults.
reset()
-- Set the configuration for all channels in Slot 4 to 4-
wire ohms.
dmm.setconfig('slot4', 'fourwireohms')
-- Create scan for all channels on the card installed in
Slot 4.
scan.create('slot4')
-- Set up digital I/O Line 1 to detect a falling-edge
trigger.
digio.trigger[1].mode = digio.TRIG_FALLING
-- Set up digital I/O Line 2 to detect a falling-edge
trigger.
digio.trigger[2].mode = digio.TRIG_FALLING
-- Set each channel so that it will close with a
measurement complete event.
scan.trigger.channel.stimulus =
scan.trigger.EVENT_MEASURE_COMP
-- Set digio 2 to pulse when a channel ready event occurs.
digio.trigger[2].stimulus =
scan.trigger.EVENT_CHANNEL_READY
-- Set each measurement to occur with a digio 1 event
trigger.
scan.trigger.measure.stimulus = digio.trigger[1].EVENT_ID