
Series 3700A System Switch/Multimeter User's Manual
Section 4: Applications
Example: Take 4-wire ohm measurements using a background scan
The following examples assume a Keithley Instruments Model 3720 card is installed in slot 4 of a
Series 3700A. This script scans all the channels in slot 4 and takes 4-wire ohm measurements using
a background scan.
Example program code for the Series 3700A
Code
Notes and comments
reset()
Reset the Series 3700A to factory defaults.
dmm.func = "fourwireohms"
Set the DMM function to four-wire ohm
measurements.
dmm.setconfig("slot4", "fourwireohms")
Set the configuration for all channels in slot 4 to
4-wire ohms.
scan.create("slot4")
Create a 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 digital I/O line 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 digital I/O line
1 event trigger.
scan.bypass = scan.ON
Set bypass to on so that the first channel closes
without taking a measurement.
4WBuffer = dmm.makebuffer(1000)
Make a buffer named "4WBuffer" and configure it to
store up to 1000 readings.
scan.background(4WBuffer)
Start the scan and runs the scan in the background.
Readings are saved to the 4WBffer that was created
with
dmm.makebuffer
.
Example: Scan, measure and store
The following examples assume a Keithley Instruments Model 3723 card is installed in slot 3 of a
Series 3700A.
This program code:
•
Scans the entire Model 3723 card
•
Measures DC volts on each channel
•
Stores readings in a buffer called
DCvoltBuffer
NOTE
For the Model 3723, the channels are reed relays, while the analog backplane relays are
electromechanical relays. Therefore, to have the scan run faster, this example sets the scan mode to
fixed ABR, which closes the backplane relays before scanning starts and keeps them closed during
the entire scan.
3700AS-900-01 Rev. A / July 2011
4-3