完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我有问题尝试使用PYVISA(SCPI命令)获取VNA E5071C的转储图像下面是我的代码:import visa rm = visa.ResourceManager()myvna = rm.open_resource(rm.list_resources()[0
])打印myvna.write(mmem:stor:imag“”D:picture.png“”“)我尝试了几个实例,如大写,小写,单引号等。前三个命令有效(我正在使用) shell一次输入一个命令)我知道我正在与正确的设备通话。我可以将文件从VNA(手动转储图像)传输到主机,但出于某种原因我无法接受 VNA的转储图片。请帮助。感谢编辑:rudy022于2015年10月1日5:07 AM编辑:rudy022于2015年10月1日上午5:13 以上来自于谷歌翻译 以下为原文 Hi, I'm having issues trying to take a dump image of the VNA E5071C using PYVISA (SCPI commands) Below is my code: import visa rm = visa.ResourceManager() myvna = rm.open_resource(rm.list_resources()[0]) print myvna.write (mmem:stor:imag ""D:picture.png""") I tried several instances such as upper case, lower case, single quotes, etc. The first three commands work (I'm using shell to enter one command at a time) and I know I'm talking to the right device. I can transfer files from the VNA (a dump image taken manually) to the host computer, but for some reason I can't take the dump image of the VNA. Please help. Thanks Edited by: rudy022 on Oct 1, 2015 5:07 AM Edited by: rudy022 on Oct 1, 2015 5:13 AM |
|
相关推荐
1个回答
|
|
嗨,我想你要么丢失了SCIP命令的引号,要么丢失了文件名的斜杠。
我用来获取屏幕截图的python代码如下。 我已经确认它适用于我的E5071C。 myvna.resource.write('MMEM:STOR:IMAG“D: picture.png”')但是,你能帮助你如何使用python将图像从E5071C传输到主机? 我其实真的卡在那里。 谢谢你,Brian 以上来自于谷歌翻译 以下为原文 Hi, I think you are either missing the quotes around the SCIP command or back slash at the file name. My python code that I use to get the screen capture is as follows. I have confirmed it works on my E5071C. myvna.resource.write('MMEM:STOR:IMAG "D:picture.png"') However, could you help on how you used python to transfer an image from the E5071C to the host computer? I'm actually really stuck there. Thank you, Brian |
|
|
|
只有小组成员才能发言,加入小组>>
1285 浏览 0 评论
2373 浏览 1 评论
2192 浏览 1 评论
2064 浏览 5 评论
2948 浏览 3 评论
1108浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
752浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
924浏览 0评论
1287浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 15:49 , Processed in 1.524000 second(s), Total 77, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号