
Series 3700A System Switch/Multimeter User's Manual
Section 4: Applications
Example: DMM buffer statistics with interactive operation
Example program code for DMM buffer statistics with interactive front panel operation
Code
Notes and comments
localnode.prompts=1
localnode.showerrors=1
Sets the instrument to generate
prompts in response to command
messages and to send generated
errors.
loadscript Generic_Noise_loop
Assign the name
"Generic_Noise_loop" to the script.
display.screen=display.MAIN
Display the main screen on the front
panel.
dmm.func="fourwireohms"
dmm.displaydigits=dmm.DIGITS_7_5
dmm.range=1
dmm.nplc=0.0005
dmm.rel.enable=dmm.OFF
dmm.autozero=0
dmm.linesync=0
dmm.offsetcompensation=dmm.OFF
dmm.autodelay=dmm.OFF
dmm.measurecount=1000
Determines the DMM settings.
dmm.measurecount = display.prompt("00000", " Meas_Cnts",
"Enter Meas_Count", dmm.measurecount, 1, 50000)
Prompts the user to enter the
measurement count from the
front panel within a range of 1 to
50 K.
num_str7 = string.format(dmm.measurecount)
num_str9 = string.format(dmm.func)
display.clear()
display.settext("$BCalculating $N" .. num_str9.. " Noise
"..num_str7.. " Rdg")
buf=dmm.makebuffer(10000)
Create a buffer that can hold up
to 10000 readings.
delay (2.5)
display.screen=display.MAIN
buf.clear()
buf.appendmode=1
hi_last_rdg = -1.2e8
lo_last_rdg = 1.2e8
sum_sq = 0
sum = 0
ave = 0
diff = 0
count = 1
dsply_cnt = 8
stop =
dmm.measurecount()
time = 0
timer.reset()
dmm.measure(buf)
time=timer.measure.t()
3700AS-900-01 Rev. A / July 2011
4-25