Hello!
Please help! I have a problem. I'm a beginner in programming... also, I'm doing a project (Agilent 34401A) where the point is to use long-term sampling. For example, on DC Voltage with 100 NPLC... and the next one is AC Current.
I would like to replace the fixed delay time with some better solution that monitors the end of the Read? command and then returns the result. I control it via GPIB.
Thank you in advance for your help.
Ad.
The example:
Parancs = "CONF:CURR:AC " & Range & ""
stat = viWrite(DMM, Parancs, Len(Parancs), retCount)
Parancs = "DET:BAND 3"
stat = viWrite(DMM, Parancs, Len(Parancs), retCount)
Parancs = "READ?"
stat = viWrite(DMM, Parancs, Len(Parancs), retCount)
Sleep 8000
stat = viRead(DMM, Buffer, 200, retCount)
ertek = Val(Buffer)