完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我想捕获具有精确迹线,单位,比例等的频谱分析仪的屏幕图像...
它在设备上的外观。 有可能用matlab做到这一点吗? 这是我要设置的脚本。 最后一个命令':MMEM ...'用于捕获屏幕,但它不起作用。 V- ---------------------------清除所有; mxa_ip ='157.235.92.18'; mxa_port = 5025; mxa = tcpip(mxa_ip,mxa_port); 的fopen(MXA); idn = query(mxa,'* IDN?')fprintf('来自%s'的Hello,idn); %设置启动和停止频率fprintf(mxa,':FREQ:START 2412 MHz'); fprintf(mxa,':FREQ:STOP 2472 MHz'); %SET RBW TO 300KHZ fprintf(mxa,':BAND:RES 1000 KHz'); %SET VBW TO 300KHZ fprintf(mxa,':BAND:VID 30 KHz'); %save picture fprintf(mxa,':MMEM:STOR:SCR C: Users Administrator Desktop test.gif'); FCLOSE(MXA); 以上来自于谷歌翻译 以下为原文 Hi, I would like to capture the screen image of the spectrum analyzer with exact trace, units, scale, etc... e.g. how it looks on the equipment. Is it possible to do this with matlab? Here is my script to setup. the last command ':MMEM...' was used to capture the screen but it did not work. V- --------------------------- clear all; mxa_ip = '157.235.92.18'; mxa_port = 5025; mxa = tcpip(mxa_ip,mxa_port); fopen(mxa); idn=query(mxa,'*IDN?') fprintf('Hello from %s ', idn); % SET START AND STOP FREQUENCY fprintf(mxa,':FREQ:START 2412 MHz'); fprintf(mxa,':FREQ:STOP 2472 MHz'); % SET RBW TO 300KHZ fprintf(mxa,':BAND:RES 1000 KHz'); % SET VBW TO 300KHZ fprintf(mxa,':BAND:VID 30 KHz'); % saving picture fprintf(mxa,':MMEM:STOR:SCR C:UsersAdministratorDesktoptest.gif'); fclose(mxa); |
|
相关推荐
4个回答
|
|
你见过这个例子:http://www.mathworks.com/matlabcentral/fileexchange/41402
以上来自于谷歌翻译 以下为原文 Have you seen this example: http://www.mathworks.com/matlabcentral/fileexchange/41402 |
|
|
|
fen556 发表于 2018-9-29 10:41 嗨vcherian:不,我没有看到。 谢谢你的提示。 这正是我想要做的。 我确实下载并运行它。 但是,我被困在'binblockread'线上了。 我有仪器工具箱,但'binblockread'无法执行:>> binblockread未定义的函数或变量'binblockread'。 >>我认为这是我需要用Mathworks清除的matlab安装问题。 您发送的链接确实提出了绕过它的方法:1。)使用远程文件保存保存屏幕。 2.)将屏幕图像从SA返回到计算机,以避免使用命令binblockread。 关于V- 以上来自于谷歌翻译 以下为原文 Hi vcherian : No, I did not see that. Thanks for the tip. It is exactly what I am trying to do. I did download and ran it. However, I got stucked at 'binblockread' line. I have Instrument tool box but the 'binblockread' was not able to execute: >> binblockread Undefined function or variable 'binblockread'. >> I think this is my matlab installation issue that I need to clear out with Mathworks. the link you sent did propose a way to get around it though: 1.) Save screen using remote file save. 2.) ftp the screen image from SA back to computer to avoid using the command binblockread. regards V- |
|
|
|
因此,要检索先前存储在频谱分析仪中的屏幕截图,以下脚本适用于Matlab。
它会将GIF下载到本地PC。 mw = ftp('192.168.xx.xx','vsa','service'); cd(mw,'userdir'); 二进制(MW); MGET(MW, 'SCREN000.GIF'); 现在我只需要弄清楚如何使用send matlab命令将spetrum分析器的屏幕截图远程保存到本地内存中。 如果有人有快速提示,请加入。 以上来自于谷歌翻译 以下为原文 So to retrieve a screen shot that was previously stored in the spectrum analyzer, the following script worked for Matlab. It will dowload the GIF to local PC. mw = ftp('192.168.xx.xx','vsa','service'); cd (mw,'userdir'); binary(mw); mget(mw,'SCREN000.GIF'); Now I just need to figure out how to use send matlab commands to remotely save the screenshot of the spetrum analyzer to its local memory. If anybody has a quick tip, please chime in. |
|
|
|
tqj460771096 发表于 2018-9-29 11:10 得到它的工作。 此示例中的整个脚本现在是:全部清除; mxa_ip ='157.235.92.18'; mxa_port = 5025; mxa = tcpip(mxa_ip,mxa_port); 的fopen(MXA); idn = query(mxa,'* IDN?')fprintf('来自%s'的Hello,idn); %设置启动和停止频率fprintf(mxa,':FREQ:START 2412 MHz'); fprintf(mxa,':FREQ:STOP 2472 MHz'); %SET RBW TO 300KHZ fprintf(mxa,':BAND:RES 1000 KHz'); %SET VBW TO 300KHZ fprintf(mxa,':BAND:VID 10 KHz'); %SET MAX HOLD fprintf(mxa,':TRACE:MODE MAXH'); %save picture fprintf(mxa,'MMEM:STOR:SCR“c: TEST.GIF”'); %ftp截图回到pc mw = ftp('157.235.92.18','vsa','service'); cd(mw,'userdir'); 二进制(MW); MGET(MW, 'TEST.GIF'); FCLOSE(MXA); 以上来自于谷歌翻译 以下为原文 Got it to work. The entire script in this example is now: clear all; mxa_ip = '157.235.92.18'; mxa_port = 5025; mxa = tcpip(mxa_ip,mxa_port); fopen(mxa); idn=query(mxa,'*IDN?') fprintf('Hello from %s ', idn); % SET START AND STOP FREQUENCY fprintf(mxa,':FREQ:START 2412 MHz'); fprintf(mxa,':FREQ:STOP 2472 MHz'); % SET RBW TO 300KHZ fprintf(mxa,':BAND:RES 1000 KHz'); % SET VBW TO 300KHZ fprintf(mxa,':BAND:VID 10 KHz'); % SET MAX HOLD fprintf(mxa,':TRACE:MODE MAXH'); % saving picture fprintf(mxa, 'MMEM:STOR:SCR "c:TEST.GIF"'); % ftp screenshot back to pc mw = ftp('157.235.92.18','vsa','service'); cd (mw,'userdir'); binary(mw); mget(mw,'TEST.GIF'); fclose(mxa); |
|
|
|
只有小组成员才能发言,加入小组>>
962 浏览 0 评论
2247 浏览 1 评论
2025 浏览 1 评论
1897 浏览 5 评论
2767 浏览 3 评论
748浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
544浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
636浏览 0评论
2426浏览 0评论
1477浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-3 02:15 , Processed in 1.520402 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191