
Series 3700A System Switch/Multimeter User's Manual
Section 4: Applications
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 DC volt
measurements.
dmm.autorange=dmm.OFF
Turn auto range off.
dmm.range=200
Select the range of 200 volts.
dmm.autozero=dmm.OFF
Turn autozero off.
dmm.nplc=.006
Set the NPLC to .006.
dmm.autodelay=dmm.OFF
Turn auto delay off.
reading_buffer=dmm.makebuffer(600)
Create a reading buffer that can hold up to
600 readings.
dmm.configure.set("Chan1to60dcvolts")
Save the current DMM settings as the
configuration "Chan1to60dcvolts".
dmm.setconfig( "1001:1060", "Chan1to60dcvolts")
Assign the configuration "Chan1to60dcvolts"
to channels 1 to 60 on slot 1.
scan.mode=scan.MODE_FIXED_ABR
Set the scan mode to fixed ABR.
scan.create("1001:1060")
Create a scan list of channels 1 to 60 on slot
1.
scan.scancount=10
Set the scan count to 10.
scan.execute(reading_buffer)
Scan in the foreground.
dmm.savebuffer("reading_buffer",
"/usb1/mydata.csv")
Write the data out to a file on a USB flash
drive.
NOTE
The NPLC setting is at .006 in the example. The fastest NPLC setting supported in a Series 3700A is
.0005. Another speed improvement option is to set the channel connect rule to OFF
(
channel.connectrule = channel.OFF
). Using this setting allows channels to open and close
at the same time, provided the application supports this operation.
Example: Fast DC volt measurement
The following example script samples a 500 Hz 70.7 mV sine wave into the 100 mVDC range at
0.0005 plc with autozero and autodelay disabled.
You can cut and paste the output data from the script into an editor like WordPad. From WordPad,
you can save it as a .csv (comma separated value) file:
1. From the menu, select File > Save As.
2. For the file name extension, type
.csv
.
3. Open the .csv file in Microsoft Excel or other spreadsheet application.
3700AS-900-01 Rev. A / July 2011
4-5