Section 7
:
Scanning
Series 3700 System Switch/Multimeter Reference Manual
7-14
Document Number: 3700S-901-01 Rev. A / August 2007
Example 3:
Command list to scan the entire card while measuring four-wire ohms using a
background scan (see the description column for other specifics).
Command
Description
reset()
Reset the Series 3700 to
factory defaults.
dmm.setconfig('slot4', 'fourwireohms
')
Set the configuration for
all channels in Slot 4 to
fourwireohms.
scan.create('slot4')
Create scan for all
channels on the card
installed in Slot 4.
digio.trigger[1].mode = digio.TRIG_FALLING
Set up digital I/O line 1 to
detect a falling-edge
trigger.
digio.trigger[2].mode = digio.TRIG_FALLING
Set up digital I/O line 2 to
detect a falling-edge
trigger.
scan.trigger.channel.stimulus =
scan.trigger.EVENT_MEASURE_COMP
Set each channel so that
it will close with a
measurement complete
event.
digio.trigger[2].stimulus =
scan.trigger.EVENT_CHANNEL_READY
Set digio 2 to pulse when
a channel ready event
occurs.
scan.trigger.measure.stimulus =
digio.trigger[1].EVENT_ID
Set each measurement
to occur with a digio 1
event trigger.
scan.bypass = scan.ON
Set bypass to ON so first
channel closes without
taking a measurement.
mybuffer = dmm.makebuffer(1000)
Make buffer named
mybuffer and configure it
to store up to 1000
readings.
scan.background(mybuffer)
Initiate the scan to
execute in the
background and save
readings to a buffer
called
mybuffer
.