Hi everyone!!
I need to take continous measurements (in 0.01 sec) with an Agilent 34401A through a measuring resistance while a dc voltage source applies a voltage ramp from 0 to 20 volts, Im using a GPIB ieee 488 cable for the connection between the multimeter and the computer, my program was written in python using the following SCPI commands
*RST
*CLS
CONF:VOLT:DC 20
TRIG:SOUR: IMM
TRIG:DEL 0.01
SAMP:COUN 1
TRIG: COUN 500
INIT
FETC?
The program used to work for a while, I could have the 500 measurements, but later something happend and I cant store more than 25 values in the reading memory, every time that I tried to change the TRIG:COUN or the SAMP:COUN with a number higher than 25 an error appears in the multimeter, sometimes is error 410 and sometimes 430. Does anyone could please give me an advice? is this problem related with the SCPI program or with the memory?
Thank you in advance
I need to take continous measurements (in 0.01 sec) with an Agilent 34401A through a measuring resistance while a dc voltage source applies a voltage ramp from 0 to 20 volts, Im using a GPIB ieee 488 cable for the connection between the multimeter and the computer, my program was written in python using the following SCPI commands
*RST
*CLS
CONF:VOLT:DC 20
TRIG:SOUR: IMM
TRIG:DEL 0.01
SAMP:COUN 1
TRIG: COUN 500
INIT
FETC?
The program used to work for a while, I could have the 500 measurements, but later something happend and I cant store more than 25 values in the reading memory, every time that I tried to change the TRIG:COUN or the SAMP:COUN with a number higher than 25 an error appears in the multimeter, sometimes is error 410 and sometimes 430. Does anyone could please give me an advice? is this problem related with the SCPI program or with the memory?
Thank you in advance
I have done same test with similar result. After change the value of timeout, problem was resolved.
errorStatus = viSetAttribute(vi34401A, VI_ATTR_TMO_VALUE, 200000) => with this example, timeout = 200sec.
unit of VI_ATTR_TMO_VALUE in msec.
Regards
Yves
Edited by: Tardz on Nov 12, 2013 1:01 AM