Hi everyone,
I'm trying to get decently fast DC voltage measurements over GPIB with an Agilent 34401A. I've been trying different commands from the manual for about 3 hours now. The commands all work fine but nothing has improved my sample rate speed, which is about 343ms.
Here's the manual I'm using: HP 34401A User's Guide (purdue.edu)
and I'll paste my Python code below as well. As far as I can tell from the manual, the READ? Command is the fastest way to get an instantaneous reading but it's still infuriatingly slow.
Any idea how to speed up my sample rate?
Thanks in advance!
# Python code starts here
import pyvisa as visa
import time
rm = visa.ResourceManager()
agilent = rm.get_instrument("GPIB0::18")
print(agilent.query('*IDN?'))
agilent.write('DISP OFF')
while(True):
before = time.perf_counter()
agilent.query('READ?')
after = time.perf_counter()
print(after - before)