完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我正在尝试使用matlab从N9020A MXA频谱分析仪捕获跟踪数据。
通过FFT扫描,10 MHz FFT宽度,10 MHz跨度和适用于应用的RBW,我获得2 ms的扫描时间。 在体面的工作站和LAN连接上使用Matlab,我能够每20毫秒捕获一条迹线,几乎与所使用的扫描点数无关。 GPIB对于有限数量的跟踪点更快,但随着扫描点数量的增加而减慢。 有没有人有任何想法改善捕捉痕迹的时间? 请参阅下面使用的Matlab代码(基于Agilent示例程序)。 代码基于直接I / O,我理解这是最快的方法。 目的是在时域和频域中以尽可能接近连续的方式收集尽可能多的数据。 ...%mxa =签证('agilent','GPIB0 :: 18 :: INSTR'); mxa = tcpip(mxa_ip,5025); 集(MXA, 'InputBufferSize',100000); 集(MXA, '超时',5); 的fopen(MXA); fprintf(mxa,':FORM:DATA REAL,32'); ... fprintf(mxa,':INIT:CONT ON'); 对于i = 1:100 fprintf(mxa,':TRAC?TRACE1'),data = 0(0,numberOfSweepPoints); data = binblockread(mxa,'float32'); 的fscanf(MXA); %删除终结符字符数据(i,:) =数据; 结束 … 以上来自于谷歌翻译 以下为原文 Hi, I’m trying to capture trace data from a N9020A MXA spectrum analyzer using Matlab. With a FFT sweep, 10 MHz FFT width, 10 MHz span and appropriate RBW for the application I get a sweep time of 2 ms. Using Matlab on a decent workstation and a LAN connection, I’m able to capture a trace every 20 ms, pretty much regardless of the number of sweep points used. GPIB is faster for a limited number of trace points but slows down with increased number of sweep points. Does anyone have any idea for improvement of the time to capture a trace? See Matlab code used below (based on Agilent example program). The code is based on direct I/O, which I understand is the fastest method. The intention is to gather as much data as possible in both time and frequency domain and in a way that is as close to continuous in time as possible. … %mxa=visa(‘agilent’, ‘GPIB0::18::INSTR’); mxa=tcpip(mxa_ip, 5025); set(mxa,'InputBufferSize',100000); set(mxa,'Timeout',5); fopen(mxa); fprintf(mxa,':FORM:DATA REAL,32'); … fprintf(mxa,':INIT:CONT ON'); data=zeros(100,numberOfSweepPoints) for i=1:100 fprintf(mxa,':TRAC? TRACE1'); data = binblockread(mxa,'float32'); fscanf(mxa); %removes the terminator character data(i,:)=data; end … |
|
相关推荐
1个回答
|
|
可能值得分析您的MATLAB代码以查看花费的时间。
我怀疑这个时间是由仪器启动跟踪,并将数据放在GPIB或LAN总线上。 如果是这样,您可能需要更改RBW和VBW设置,以查看仪器是否可以根据您指定的设置更快地进行采集。 以上来自于谷歌翻译 以下为原文 It might be worth profiling your MATLAB code to see where time is spent. I suspect this time is spent by the instrument initiating a trace, and putting the data on the GPIB or LAN bus. If so, you may want to change your RBW and VBW settings to see if the instrument can make the acquisition faster, based on your specified settings. |
|
|
|
只有小组成员才能发言,加入小组>>
1291 浏览 0 评论
2375 浏览 1 评论
2194 浏览 1 评论
2065 浏览 5 评论
2952 浏览 3 评论
1123浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
758浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
934浏览 0评论
1294浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 07:11 , Processed in 1.297571 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号