完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好。
我正在进行一些测量,我使用端口1输出CW信号,然后在零扫宽模式下测量输出信号频率的功率变化。 我以20赫兹的速度触发。 我的信号相当小,所以我必须平均大约100-400次跟踪。 我似乎无法在板上执行此操作(我知道在SA模式下有一个平均选项,但它似乎不适用于零扫宽模式)。 我希望我的分辨率带宽尽可能大,这样我就可以获得最佳的时间分辨率/最短的上升时间。 我在matlab中使用SCPI来读出我的痕迹,我已经设置了6001点:fprintf(FF,'FORM ASC,0; * OPC'); %我很确定这是默认的fprintf(FF,'SENS:BAND:RES MAX'); %i需要5 MHz带宽fprintf(FF,'DISP:ENAB 0')%通过不更新显示数据=查询(FF,'TRAC1:DATA?')来加快速度。 %读取每次扫描。 这是我看过的令人望而却步的步骤,似乎fieldfox已经自动关闭了电池保护程序,所以我很确定任何与打开/关闭电池保护程序相关的时间都可以克服。 我的问题是,要获得并转移400个平均值,大约需要40分钟,即使每个跟踪只有6001个点。 我能做些什么来加快这个过程吗? 将数据格式化为REAL64帮助? 有没有办法在fieldfox上存储所有的跟踪,然后在一个大块中传输它们更好的选择? 如果我能找到一种具有恒定(未触发)的cw源并且仅触发时间测量的方法,它会有所帮助吗? 谢谢你的帮助p.s. 我已经把我的matlab代码包含在iIve使用的命令中,按照我称之为的顺序粘贴到一个文件中。 编辑:乔安娜于2016年2月9日晚上8:13 以上来自于谷歌翻译 以下为原文 Hi. i'm doing some measurements where I'm using port 1 to output a CW signal, and then measuring changes in power at the output signal frequency in zero span mode. I'm triggering at 20 Hz. My signals are fairly small, so I have to average about 100-400 time traces. I can't seem to do this onboard (I know there is an averaging option in SA mode, but it doesn't seem to work in zero span mode). I want my resolution bandwidth to be as large as possible so that I can get the best temporal resolution/shortest risetime. I'm using SCPI in matlab to read out my traces, which I have set to have 6001 points: fprintf(FF, 'FORM ASC,0; *OPC'); %I'm pretty sure this is the default fprintf(FF, 'SENS:BAND:RES MAX'); %i need to 5 MHz bandwidth fprintf(FF, 'DISP:ENAB 0') %speed things up a little by not updating display data=query(FF, 'TRAC1:DATA?'); %read each sweep. this is the prohibitive step I've had a look, and it seems that the fieldfox has automatically turned the battery saver off, so I'm pretty sure that any time associated with turning the battery saver on/off between traces is overcome. My problem is that to obtain and transfer 400 averages, it takes about 40 minutes, even though each trace only has 6001 points. Is there anything that I can do to speed this process up? will formating the data as a REAL64 help? is there a way of storing all the traces on the fieldfox and then transferring them in one big block a better option? Would it help if I could find a way of having a constant (not triggered) cw source, and only triggering the time measurements? Thanks for your help p.s. I've included my matlab code with the commands iIve used pasted into one file in the order that I call them. Edited by: Joanna on Feb 9, 2016 8:13 PM 附件
|
|
相关推荐
1个回答
|
|
以二进制格式传输数据几乎肯定会比ascii快。
您可以尝试浮点(4字节)或双(8字节),看看哪个更快。 权衡是FieldFox在内部将数据存储为double,因此当float需要传输更少的字节(1/2!)时,由于需要进行内部转换,因此它可能仍然较慢。 Ascii方法需要更耗时的转换,并且导致数据多于双倍,因此通常是最慢的选项。 最快的选项最终取决于您的网络速度和要传输的数据长度。 您最好的选择是在您的特定情况下尝试每一个。 FORM:DATA REAL,32或FORM:DATA REAL,64将分别给出float和double结果。 默认情况下,FieldFox返回little-endian二进制数据,这是最快的,因为它匹配内部表示。 如果您需要在目标计算机上使用不同的字节顺序,并且需要最佳性能,我建议在该端交换字节,并避免使用FieldFox的FORM:BORD命令(可以在FieldFox上进行转换)。 会 以上来自于谷歌翻译 以下为原文 Transferring the data in binary format will almost certainly be faster than ascii. You can try both float (4-byte) or double (8-byte) and see which is faster. The tradeoff is that FieldFox stores the data internally as double, so while float will need to transfer fewer bytes (1/2!), it may still be slower as an internal conversion is necessary. The Ascii method requires an even more time consuming conversion, and results in more data than double, so is generally the slowest option. The fastest option will ultimately depend on your network speed and the length of the data to be transferred. Your best bet is to try each in your particular situation. FORM:DATA REAL,32 or FORM:DATA REAL,64 will give float and double results, respectively. By default FieldFox returns little-endian binary data, and this is the fastest as this matches the internal representation. If you need a different byte order on the destination machine, and you need the best performance, I recommend swapping bytes on that end, and avoiding FieldFox's FORM:BORD command (which can do the conversion on the FieldFox). Wil |
|
|
|
只有小组成员才能发言,加入小组>>
1234 浏览 0 评论
2352 浏览 1 评论
2163 浏览 1 评论
2028 浏览 5 评论
2912 浏览 3 评论
980浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
712浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
812浏览 0评论
1237浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 04:33 , Processed in 1.361677 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号