完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我尝试通过LAN连接(Telnet)从PC(win7)加载和播放wafeform(使用Agilent Signal Studio创建)到MXG信号发生器(N5182A)。
波形文件(test1.wfm)位于外部USB闪存。 我的源代码看起来像这样(Phyton):import telnetlib host ='XX.XX.XX.X'#port = 5025 tn = telnetlib.Telnet(host,port)tn.write(“:MEM:COPY / USER / WAVEFORM / TEST1 / USER / BBG1 / WAVEFORM / TEST1“)tn.write(”SOURce:RADio:ARB:WAVeform WFM1:TEST1“)tn.write(”SOUR:RAD:ARB:STAT ON“)tn.write(”“ OUTP:MOD:STAT ON“)但它不起作用。我需要帮助,在此先感谢 以上来自于谷歌翻译 以下为原文 Hi, I try to load and play wafeform (created with Agilent Signal Studio) to MXG signal generator (N5182A) from PC (win7) via LAN connection(Telnet). The waveform file(test1.wfm) located at external USB flash. My source code look like this(Phyton): import telnetlib host = 'XX.XX.XX.X' # port = 5025 tn = telnetlib.Telnet(host, port) tn.write(":MEM:COPY /USER/WAVEFORM/TEST1 /USER/BBG1/WAVEFORM/TEST1") tn.write("SOURce:RADio:ARB:WAVeform WFM1:TEST1") tn.write("SOUR:RAD:ARB:STAT ON") tn.write(""OUTP:MOD:STAT ON") But it doesn't works.I need to help, Thanks in advance |
|
相关推荐
2个回答
|
|
我写了一个执行此操作的ruby脚本,我看到的差异在于我们的副本行:我有'mem:copy'SNVWFM:“,”WFM1:“'将它从非易失性wfm内存复制到易失性wfm内存中使用
arb命令,而不仅仅是使用文件系统位置,这是你正在做的事情,并可能导致问题。 其余的命令看起来很接近,但我要记住,文件名/路径也应该是双引号。 以上来自于谷歌翻译 以下为原文 I wrote a ruby scrip that does this and the difference I'm seeing are in our copy lines: i have 'mem:copy "SNVWFM:","WFM1:"' that copies it from nonvolatile wfm memory into volatile wfm memory using the arb commands, rather than just using the filesystem location which is what it looks like youre doing and is probably causing issues. rest of your commands look good as near as i can tell, but remember that filenames/paths should be in double quotes too. |
|
|
|
q153605268 发表于 2019-5-16 07:32 嗨 - 我把这个帖子移到了论坛的Signal Sources部分。 以上来自于谷歌翻译 以下为原文 Hi - I moved this thread to the Signal Sources section of this Forum. |
|
|
|
只有小组成员才能发言,加入小组>>
1351 浏览 0 评论
2405 浏览 1 评论
2234 浏览 1 评论
2088 浏览 5 评论
2981 浏览 3 评论
1313浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
793浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
1099浏览 0评论
1351浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-1 09:51 , Processed in 1.166098 second(s), Total 46, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号