完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我正在通过Linux-GPIB包和Python从列表编程测量,下面你将看到代码。
当我尝试读取缓冲区时出现问题。 如果我使用'FETC:ARR:VOLT?',它只是提供瞬时测量,但如果我使用'FETC:CURR:ARR ARRAY1',电子负载显示:ERR -113,未定义的标题[此设备不允许操作]。 我怎样才能读回与列表中显示的九个点相对应的电压值? 非常感谢提前,问候,Rubénimportgpib从时间导入sleepdef lista():self = gpib.find('eload')#LISTgpib.write(self,'CURR:MODE LIST')gpib.write(self,'LIST: CURR 1,0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2')gpib.write(self,'LIST:CURR:SLEW 1E + 6')gpib.write(self,'LIST:CURR:RANG 10 ')gpib.write(self,'LIST:CURR:TLEV 0')gpib.write(self,'LIST:DWEL 0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1')#gpib.write (self,'SENS:SWE:POIN 1')gpib.write(self,'SENS:SWE:tiNT 0.05')gpib.write(self,'SENS:SWE:OFFS 0')gpib.write(self,'LIST :STEP ONCE')#Inicializaciongpib.write(self,'INIT:NAME LIST')gpib.write(self,'INIT:NAME ACQ')#Sincronizadogpib.write(self,'TRIG:SEQ2:COUN 9')gpib。 写(自我,'TRIG:TIM 2')gpib.write(自我,'TRIG:SOUR TIM')打印'Pausa para realizar la adquisicion'sleep(20)#Medidagpib.write(self,'FETC:ARR:VOLT? ')res = gpib.read(self,512)print res 以上来自于谷歌翻译 以下为原文 Hi, I am programming a measurement from a list through the Linux-GPIB package and Python, below you will see the code. My problem comes when I try to read the buffer. If I use 'FETC:ARR:VOLT?', it just deliver an instantaneus measurement but if I use 'FETC:CURR:ARR ARRAY1' the electronic load shows: ERR -113, Undefined header [operation not allowed for this device]. How could I read back the voltage values corresponding to the nine points showed in the list? Thanks a lot in advance, Regards, Rubén
|
|
相关推荐
7个回答
|
|
|
嗨,让我尝试让一个单位试用代码,然后回复你.Steven
以上来自于谷歌翻译 以下为原文 Hi, Let me try get a unit to try out the code and get back to you on this. Steven |
|
|
|
|
|
|
|
|
|
|
|
嗨,鲁本,我今天有机会试用你的代码。
仔细看了之后,我才意识到我不太了解它。 我看到第一部分是你设置一个9点的当前列表,停留时间为0.1秒。 之后,我看到你尝试设置某种测量系统,这就是我感到困惑的地方。 您是否只想在列表的每一步获得电压读数? 而不是我的代码,我可能更方便生成自己的代码并将其发送给您。 我上面的描述是否准确地捕捉了你想做的事情?史蒂文 以上来自于谷歌翻译 以下为原文 Hi Ruben, I had a chance to try out your code today. After taking a good look at it, I realize that I don't quite understand it. I see the first portion is where you set up a current list with 9 points with a dwell time of 0.1 seconds. After that I see you try to setup some sort of measurement system and that's where I am confused. Are you just trying to get a voltage reading at each step of the list? Instead of me working off your code, it might be more convenient for me to try generate my own code and send it to you. Does my description above accurate capture what you want to do? Steven |
|
|
|
|
|
嗨,史蒂文,我正在尝试测量当前列表每一步的电压读数。
如果你非常善于生成代码,我会非常感激。最好的,Rubén 以上来自于谷歌翻译 以下为原文 Hi Steven, Exactly, I was trying to measure the voltage reading at each step of the current list. If you are so kind to generate the code, I would be so thankful. Best regads, Rubén |
|
|
|
|
|
嗨,我有同样的问题。
我试图用触发列表编程测量,但错误601(扫描点太多)每次都会停止我的采集。 采集工作有四个或更少的步骤,但如果我增加步骤数,程序将失败。 鲁本,你找到了解决这个问题的方法吗? 我知道如何解决这个问题吗?先谢谢你的帮助,Maura 以上来自于谷歌翻译 以下为原文 Hi, I have the same problem. I am trying to program a measurement with a triggered list but the error 601 (too many sweep points)everytime stops my acquisition. The acquisition works with four or less steps but if I increase steps number the program fails. Rubén, did you find any solution for this problem? Any idea how I could fix it? Thanks in advance for your help, Maura |
|
|
|
|
|
嗨Maura,对不起,我仍然不明白这些触发器模型缺少什么。
但是,如果您不介意在一次启动触发后执行的列表,那么您可以使用STEP AUTO模型。 我试过,它工作正常.Regards,Rubén 以上来自于谷歌翻译 以下为原文 Hi Maura, Sorry, I still do not understand what was missing with these trigger model. However, if you would not mind the list to be executed secuentially after one starting trigger, then you can use the STEP AUTO model. I tried and it works fine. Regards, Rubén |
|
|
|
|
|
嗨,我想我可以在这里提供帮助:你在这里遇到的是Trigger count命令是针对整个大型机的事实。
如果安装了多个负载通道,如果不更改未进行触发测量的通道上的测量点数,则会出现此错误。 默认测量点数为1000可以为单个模块设置的最大点数为4096.进行数学计算:4 * 1000 = 4000,即OK5 * 1000 = 5000,大于4096最大值。 解决此错误的方法是将未进行触发测量的通道中的点更改为导致总点数小于4096的数字。例如,如果要进行5次扫描,则需要 是4096/5 = 819分。 以上来自于谷歌翻译 以下为原文 Hi, I think I can help here: What you are running into here is the fact that the Trigger count command is for the entire mainframe. If you have more than one load channel installed, you will get this error if you do not change the number of measurement points on the channels that you are not doing the triggered measurement on. The default number of measurement points is 1000 The maximum number of points that can be set for a single module is 4096. Doing the math: 4 * 1000 = 4000 which is OK 5 * 1000 = 5000 which is greater than the 4096 maximum. The way around this error is to change the points in the channels that you are not doing triggered measurements on to a number that would result in a total number of points less than 4096. For example if you want to do 5 sweeps, it needs to be 4096/5= 819 points. |
|
|
|
|
只有小组成员才能发言,加入小组>>
1846 浏览 0 评论
2740 浏览 1 评论
2641 浏览 1 评论
2451 浏览 5 评论
3461 浏览 3 评论
1848浏览 0评论
421浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 17:36 , Processed in 0.997481 second(s), Total 86, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2223