完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个34972A安装了20通道多路复用器。
我正在使用USB和VISA连接C#进行编程。 我将CONF命令发送到单元,然后是CONF? 命令确认。 然而,当我发送下一个CONF命令时,单元正确响应,之前配置的通道返回到关闭状态。 Code Snippet string output =“CONF:VOLT:DC AUTO,MAX,(@”+ channelList +“)”; Benchlink.Connection.WriteString(输出); Console.WriteLine(输出); Benchlink.Connection.WriteString( “CONF?”); Console.WriteLine(Benchlink.Connection.ReadString()); string output =“CONF:VOLT:DC 100,MAX,(@”+ channelList +“)”; Benchlink.Connection.WriteString(输出); Console.WriteLine(输出); Benchlink.Connection.WriteString( “CONF?”); Console.WriteLine(Benchlink.Connection.ReadString()); -----输出CONF:VOLT:DC AUTO,MAX,(@ 101,102,103)“VOLT + 1.000000E + 01,+ 1.000000E-03”,“VOLT + 1.000000E + 01,+ 1.000000E-03”,“ VOLT + 1.000000E + 01,+ 1.000000E-03“CONF:VOLT:DC 100,MAX,(@ 104)”VOLT + 1.000000E + 02,+ 1.000000E-02“任何人都可以了解为什么只有最多 存储最近的CONF命令并清除之前的命令? 我读过的每个代码示例都表明这应该可以正常工作。 我尝试过的事情:1。每个命令结束时的Environment.NewLine 2. CONF之前的冒号(:) ... 3.完全输入命令:CONFigure:VOLTage:DC AUTO,MAX,(@ ...) 提前谢谢,Eric PS 没有CODE标签,真的吗? 以上来自于谷歌翻译 以下为原文 I have a 34972A with a 20 channel mux installed. I am programming in C# connected by USB and VISA. I send the CONF commands to the unit followed by the CONF? command for confirmation. The unit responds correctly, however, when I send the next CONF command the previously configured channels return to an off state. Code Snippet string output = "CONF:VOLT:DC AUTO,MAX,(@" + channelList + ")"; Benchlink.Connection.WriteString(output); Console.WriteLine(output); Benchlink.Connection.WriteString("CONF?"); Console.WriteLine(Benchlink.Connection.ReadString()); string output = "CONF:VOLT:DC 100,MAX,(@" + channelList + ")"; Benchlink.Connection.WriteString(output); Console.WriteLine(output); Benchlink.Connection.WriteString("CONF?"); Console.WriteLine(Benchlink.Connection.ReadString()); ----- Output CONF:VOLT:DC AUTO,MAX,(@101,102,103) "VOLT +1.000000E+01,+1.000000E-03","VOLT +1.000000E+01,+1.000000E-03","VOLT +1.000000E+01,+1.000000E-03" CONF:VOLT:DC 100,MAX,(@104) "VOLT +1.000000E+02,+1.000000E-02" Can anyone shed some light on why only the most recent CONF command is stored and the previous are cleared? Every code example I have read suggests this should work fine. Things I have tried: 1. Environment.NewLine at the end of each command 2. Colons (:) before CONF... 3. Typing out the command completely :CONFigure:VOLTage:DC AUTO,MAX,(@...) Thanks in advance, Eric P.S. No CODE tags, really? |
|
相关推荐
1个回答
|
|
请允许我回答我自己的问题。
Daq将使用CONF返回最近配置的频道? 查询UNTIL通道被添加到扫描列表中。 一旦将通道添加到扫描列表CONF? 将返回列表中频道的配置。 以上来自于谷歌翻译 以下为原文 Allow me to answer my own question. The Daq will return the most recently configured channels with the CONF? Query UNTIL channels are added to the scan list. Once the channels are added to the scan list CONF? will return the configuration of the channels in the list. |
|
|
|
只有小组成员才能发言,加入小组>>
1230 浏览 0 评论
2351 浏览 1 评论
2160 浏览 1 评论
2026 浏览 5 评论
2908 浏览 3 评论
974浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
707浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
808浏览 0评论
1230浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 05:43 , Processed in 1.494421 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号