完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我希望这是正确的论坛。
我开始使用的是Agilent N6705B功率分析仪。 我要做的是自动化电流和电压数据记录,同时上下改变电压。 我有一些成功,但真的没有让它做我想要的。 目前仅限于Python编程。 经过数周的挫折之后,我现在仍然坚持“没有一个有效的获取来获取”错误。 所以我认为我正在编写错误的序列来设置记录器。 无论如何,我希望有一个代码示例,我可以建模。 有没有人可以使用代码示例进行数据记录并获取min / max / avg + volt / curr? 即使它只是SCPI命令; 对我来说这将是一个巨大的起步。 非常感谢提前! 注意我使用的是AgilentN6705A.py类。 我试过的是:set_dlog_durationx initiate_dlogfname trigger_dlog set_dlog_first_marker set_voltagey VBAT.set_dlog_second_markerx VBAT.abort_dlog VBAT.abort_acq VBAT.fetch_dlog_voltage编辑:Gary Grumble于2014年8月26日上午10:12 以上来自于谷歌翻译 以下为原文 Hi I am hoping this is the right forum for this. I have an Agilent N6705B Power Analyzer that I started using. What I am trying to do is automate datalog of the current and voltage and at the same time change the voltage up and down. I’ve had some success but really not getting it to do what I want. Currently limited to programming in Python. After weeks of frustration, I am now stuck on “There is not a valid acquisition to fetch from” error. So I think I am coding the wrong sequence for setting up the logger. Anyways, I wish there was a code sample that I could model after. Does anyone have code sample available for data logging and fetching min/max/avg + volt/curr? Even if it is just SCPI Commands; it would be such a huge jump start for me. Much thanks in advance! Note I am using the AgilentN6705A.py class. What I have tried is: set_dlog_duration x initiate_dlog fname trigger_dlog set_dlog_first_marker set_voltage y VBAT.set_dlog_second_marker x VBAT.abort_dlog VBAT.abort_acq VBAT.fetch_dlog_voltage < - -error Edited by: Gary Grumble on Aug 26, 2014 10:12 AM |
|
相关推荐
5个回答
|
|
嗨Gary这可能很简单,请确保您有一份手册。
请参阅第185页的measure命令。对N6705B的SCPI命令的Linux支持线程显示它是多么容易,只是松开OO类,并通过套接字连接。 德里克 以上来自于谷歌翻译 以下为原文 Hi Gary This could be quite easy, make sure you have a copy of the manual. Take a look on page 185 at the measure commands The thread Linux support of SCPI commands for N6705B shows how easy it could be, just loose the OO classes, and connect over a socket. Derek |
|
|
|
wangcong12138 发表于 2018-10-26 17:16 您想使用ELOG命令集。 这是我测试成功执行ELOG的示例程序:VOLT 5,(@ 2)CURR 1.5,(@ 2)OUTP ON,(@ 2)SENS:ELOG:FUNC:CURR ON,(@ 2)SENS :ELOG:FUNC:CURR:MINM ON,(@ 2)SENS:ELOG:FUNC:VOLT ON,(@ 2)SENS:ELOG:FUNC:VOLT:MINM ON,(@ 2)SENS:ELOG:PER 0.0007,( @ 2)TRIG:ELOG:SOUR BUS,(@ 2)INIT:ELOG(@ 2)* TRG FETC:ELOG? 4096,(@ 2)FETC:ELOG? 4096,(@ 2)FETC:ELOG? 4096,(@ 2)FETC:ELOG? 4096,(@ 2)ABOR:ELOG(@ 2)如果这对您有用,请告诉我。 以上来自于谷歌翻译 以下为原文 You want to use the ELOG set of commands. Here is a sample program that I have tested that successfully performs an ELOG: VOLT 5,(@2) CURR 1.5,(@2) OUTP ON,(@2) SENS:ELOG:FUNC:CURR ON,(@2) SENS:ELOG:FUNC:CURR:MINM ON,(@2) SENS:ELOG:FUNC:VOLT ON,(@2) SENS:ELOG:FUNC:VOLT:MINM ON,(@2) SENS:ELOG:PER 0.0007,(@2) TRIG:ELOG:SOUR BUS,(@2) INIT:ELOG (@2) *TRG FETC:ELOG? 4096 ,(@2) FETC:ELOG? 4096 ,(@2) FETC:ELOG? 4096 ,(@2) FETC:ELOG? 4096 ,(@2) ABOR:ELOG (@2) Let me know if this works for you. |
|
|
|
张友芬1 发表于 2018-10-26 17:32 嗨, 非常感谢您提供代码示例。 我可以请你看一下我遇到的问题。 关于我在尝试外部数据记录超过4个数量(4个电流,1个电压或任何此类组合)时遇到的问题的简要概述:例如:Ch1-记录其余通道上的电压和仅电流1)错误303: 没有有效的获取来取自2)错误323:在太多通道上测量TINTerval太小。 我可以通过更改SOCKET缓冲区读取大小或在开始获取之前等待更长时间来修复大多数测试的错误303。 但是,考虑到集成时间和获取的参数数量,否则有一个标准可以做出这个选择。 在大多数情况下,错误323一直是许多测试的阻塞问题,包括无法记录超过4个数量。 尝试将积分时间缩短不到1 ms时,会弹出类似的错误。 我以ASCII而不是Real格式记录数据,因为我没有使用任何IO格式库,而是使用python套接字来发送和接收数据。 所以我确实理解我不能一次记录4个通道,数据格式是ASCII,所以我分别获取每个通道数据。 除了外部数据记录,其他功能似乎运作良好。 为了执行这些操作,我一直在使用Python,Socket和SCPI命令。 这结束了我的问题的简要总结。 在这方面的任何帮助将不胜感激。 谢谢,KARTHIK 以上来自于谷歌翻译 以下为原文 Hi, Thank you so much for putting up the code sample. May I request you to look at issues I have come across. A brief summary on issues I ran into while trying to externally datalog more than 4 quantities (4 current, 1 voltage or any such combination): Ex: Ch1-Log both Voltage and Current only Current on rest of the channels 1) Error 303: There is no valid acquisition to fetch from 2) Error 323: Meas TINTerval too small on too many channels. I could fix error 303 for most tests by changing SOCKET buffer read size or by waiting for longer times before I start the fetch. But otherwise is there a criteria to make this choice given the integration time and number of parameters being fetched. For the most part error 323 has been a blocking issue for many tests including the inability to log more than 4 quantities. A similar error pops up while trying to reduce the integration time less than 1 ms. I log data in ASCII instead of Real format because I don't use any IO formating library, instead I use python socket to send and receive data. So I do have the understanding that I cannot log 4 channels at a time with data format being ASCII, so I fetch each channel data separately. Except external data logging other features seems to work well. In order to perform these operations I have been using Python, Socket and SCPI commands. This ends the brief summary of my issues. Any help in this regard would be greatly appreciated. Thanks, Karthik |
|
|
|
你好, 我相信,为了记录4个以上的参数,你需要将TINT分辨率从20 us改为40 us。 您可以使用以下命令执行此操作: SENS:SWE:TINT:RES RES40,(@ 1) 用户指南的第170页上有一个描述,位于N6705用户指南。 如果这解决了您的错误,请告诉我。 以上来自于谷歌翻译 以下为原文 Hello, I believe that in order to log more than 4 parameters, you need to change the TINT resolution to 40 us from 20 us. You can do this using the following command: SENS:SWE:TINT:RES RES40,(@1) There is a description of this on page 170 of the user's guide located at N6705 User's Guide. Please let me know if this solves your error. |
|
|
|
你好, 非常感谢您的回复。 我做了你推荐的改变,但仍然无法正常工作。 在过去尝试将积分时间设置为100ms这是我的要求之一使用SENS:ELOG:PER 0.1,(@ 1,2,3,4)我还使用SENS:SWE:TINT 0.1将TINTerval设置为100ms,( @ 1,2,3,4)并最终出现同样的错误。 我长时间(3到12小时)进行此测试,每1秒获取一次数据。 你认为我随着时间的推移会遗漏别的东西吗? 谢谢, KARTHIK 以上来自于谷歌翻译 以下为原文 Hello, Thank you so much for the response. I made the change you recommended, but still didn't work. In past while trying to set the integration time to 100ms which is one of my requirements using SENS:ELOG:PER 0.1,(@1,2,3,4) I had also set the TINTerval to 100ms using SENS:SWE:TINT 0.1,(@1,2,3,4) and ended up with same error. I do this test for long hours (3 to 12hrs) and I fetch data every 1 second. )Do you think I am missing something else with time? Thanks, Karthik |
|
|
|
只有小组成员才能发言,加入小组>>
1213 浏览 0 评论
2345 浏览 1 评论
2147 浏览 1 评论
2017 浏览 5 评论
2897 浏览 3 评论
950浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
691浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
793浏览 0评论
1214浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-18 07:21 , Processed in 1.754336 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号