是德科技
直播中

王鑫

7年用户 1145经验值
私信 关注
[问答]

需要帮助N6705B分析仪上的数据记录

嗨,我希望这是正确的论坛
我开始使用的是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)

杜美娜

2018-10-26 14:48:51
嗨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
举报

罗敏

2018-10-26 15:05:15
引用: wangcong12138 发表于 2018-10-26 17:16
嗨Gary这可能很简单,请确保您有一份手册。
请参阅第185页的measure命令。对N6705B的SCPI命令的Linux支持线程显示它是多么容易,只是松开OO类,并通过套接字连接。
德里克

您想使用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.
举报

张荷

2018-10-26 15:24:49
引用: 张友芬1 发表于 2018-10-26 17:32
您想使用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,(

嗨,
非常感谢您提供代码示例。
我可以请你看一下我遇到的问题。
关于我在尝试外部数据记录超过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
举报

罗敏

2018-10-26 15:41:37
引用: nvywerww 发表于 2018-10-26 17:52
嗨,
非常感谢您提供代码示例。
我可以请你看一下我遇到的问题。

你好,
我相信,为了记录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.
举报

更多回帖

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