是德科技
直播中

丁冬芹

8年用户 1382经验值
私信 关注
[问答]

E5071C命令转储图像语法错误

嗨,我有问题尝试使用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)

尹姗姗

2018-9-21 11:56:43
嗨,我想你要么丢失了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
举报

更多回帖

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