
Section 4: Applications
Series 3700A System Switch/Multimeter User's Manual
Example: Scan the card and take measurements
The following examples assume a Keithley Instruments Model 3720 card is installed in slot 3 of a
Series 3700A. Command list to scan the entire card while measuring DC volts on each channel and
storing readings in a buffer called
DCVbuffer
(see the "Notes and comments" for other specifics).
Example program code for the Series 3700A
Code
Notes and comments
reset()
Reset the Series 3700A to factory defaults.
dmm.func = "dcvolts"
Set the DMM function to measure DC volts.
dmm.range = 10
Set the DC volt range to 10 volts.
dmm.nplc = .1
Sets the number of power line cycles (nplc) over
which a measurement is integrated to 0.1. This
helps improve measurement quality by canceling
line noise.
dmm.configure.set("measureDCV")
Save the DMM configuration as "measureDCV".
DCVbuffer = dmm.makebuffer(1000)
Make a buffer named "DCVbuffer" and configure it
to store up to 1000 readings.
digio.trigger[1].mode = digio.TRIG_FALLING
Set up digital I/O line 1 to detect a falling-edge
trigger.
scan.trigger.channel.stimulus =
digio.trigger[1].EVENT_ID
Use a digital I/O event as the stimulus to close each
channel.
scan.bypass = scan.OFF
Set bypass to off so that first channel needs to see
a trigger before closing.
scan.create("3001:3060", "measureDCV")
Create a scan for channels 1 to 60 on the card
installed in slot 3.
scan.background(DCVbuffer)
Start the scan and runs the scan in the background.
Readings are saved to the DVCbuffer that was
created with
dmm.makebuffer
.
4-2
3700AS-900-01 Rev. A / July 2011