是德科技
直播中

孙榕

8年用户 216经验值
私信 关注
[问答]

Agilent 34401A读数存储器问题

嗨,大家好!!
我需要使用Agilent 34401A通过测量电阻连续测量(0.01秒),同时直流电压源施加0到20伏的电压斜坡,Im使用GPIB ieee 488电缆连接万用表和计算机之间的连接
,我的程序是用python编写的,使用以下SCPI命令* RST * CLS CONF:VOLT:DC 20 TRIG:SOUR:IMM TRIG:DEL 0.01 SAMP:COUN 1 TRIG:COUN 500 INIT FETC?
该程序曾经工作了一段时间,我可以进行500次测量,但后来发生了一些事情,我不能在读数存储器中存储超过25个值,每次我尝试更改TRIG:COUN或SAMP:COUN时
数字高于25,万用表中出现错误,有时是错误410,有时是430.有人可以请给我一个建议吗?
这个问题与SCPI程序或内存有关吗?
先谢谢你

以上来自于谷歌翻译


     以下为原文

  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  

回帖(1)

莫循虎

2019-1-9 15:17:41
嗨,我做了同样的测试,结果相似。
更改超时值后,问题得到解决。
errorStatus = viSetAttribute(vi34401A,VI_ATTR_TMO_VALUE,200000)=>在此示例中,timeout = 200sec。
VI_ATTR_TMO_VALUE的单位,以毫秒为单位。
关注YvesEdited:Tardz于2013年11月12日凌晨1点01分

以上来自于谷歌翻译


     以下为原文

  Hi,

   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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分