User manual

Section 8: Scanning Series 3700 System Switch/Multimeter Reference Manual
8-14 3700S-901-01 Rev. C / July 2008
Scanning examples
The following examples assume a Keithley Instruments Model 3720 module is
installed in Slot 3 of a Series 3700.
NOTE In the examples, to clear a trigger stimulus after setting, set the
stimulus to 0, which returns the stimulus setting back to its factory
default value, which may or may not be 0.
Example 1:
Command list to scan the entire card in a switch-only application (no measuring)
that has digital I/O line 1 initiate a background scan (see the comments for other
specifics).
-- Reset the Series 3700 to factory defaults
reset()
-- Create scan for all channels on the card installed in
Slot 3.
scan.create('slot3')
-- Setup digital I/O line 1 to detect a falling-edge
trigger.
digio.trigger[1].mode = digio.TRIG_FALLING
-- Use a digital I/O event as the ARM layer's stimulus.
scan.trigger.arm.stimulus = digio.trigger[1].EVENT_ID
-- Initiate the scan to execute in the background.
scan.background()
Example 2:
Command list to scan the entire card while measuring DC volts on each channel
and storing readings in a buffer called mybuffer (see the comments for other
specifics).
-- Reset the Series 3700 to factory defaults.
reset()
-- Set the range of DC volts to the 10 volt range.
dmm.range = 10
-- Set NPLC to 0.1 NPLC.
dmm.nplc = .1
-- Save the DMM configuration as "mydcv."
dmm.configure.set('mydcv')
-- Make buffer named "mybuffer" and configure it to store
up to 1000 readings.
mybuffer = dmm.makebuffer(1000)