完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我希望有人可以帮助我,我正在编写一个程序扫描434970交换机单元中34901板的所有通道但是两行给我错误-103我找不到问题,代码是下一个:开关
(事件){case EVENT_COMMIT:EscribePto(“SYST:CTYPE?100 n”); LeerPto(); SetCtrlVal(panelHandle,PANEL_REPLY,reply); ProcessDrawEvents(); SetCtrlAttribute(panelHandle,PANEL_REPLY,ATTR_VISIBLE,1); EscribePto( “CONFigure:VOLTage:DC 10,(@ 101:120)”); EscribePto(“SENSe:VOLTage:NPLC 1,(@ 101:120)”); //(这是第一行给出了-103错误)EscribePto(“ROUTe:SCAN(@ 101:120)”); //(这是给我-103错误的第二行)EscribePto(“ROUTe:CHANnel:DELay 0.25,(@ 101:120)”); EscribePto(“TRIGger:COUNt 2”); EscribePto(“TRIGger:SOURce tiMer“); EscribePto(”TRIGger:TIMer 2“); EscribePto(”FORMat:READing:TIME:TYPE RELative“); EscribePto(”FORMat:READing:TIME ON“); EscribePto(”FORMat:READing:CHANnel ON“ ); EscribePto(“* OPC?”); break;}返回0;我已经查看了编程手册,但我发现错误,请提前感谢。 以上来自于谷歌翻译 以下为原文 Hello, i hope somebody can help me, im writing a program scan all channels from a 34901 board in a 434970 switch unit but two lines give me the error -103 and i can´t find the problem, the code is the next: switch (event) { case EVENT_COMMIT: EscribePto ("SYST:CTYPE? 100n"); LeerPto(); SetCtrlVal (panelHandle, PANEL_REPLY, reply); ProcessDrawEvents (); SetCtrlAttribute (panelHandle, PANEL_REPLY, ATTR_VISIBLE, 1); EscribePto ("CONFigure:VOLTage:DC 10, (@101:120)"); EscribePto ("SENSe:VOLTage:NPLC 1, (@101:120)"); //(this is the first line thata gives me the -103 error) EscribePto ("ROUTe:SCAN (@101:120)"); //(this is the second line that gives me -103 error) EscribePto ("ROUTe:CHANnel:DELay 0.25, (@101:120)"); EscribePto ("TRIGger:COUNt 2"); EscribePto ("TRIGger:SOURce TIMer"); EscribePto ("TRIGger:TIMer 2"); EscribePto ("FORMat:READing:TIME:TYPE RELative"); EscribePto ("FORMat:READing:TIME ON"); EscribePto ("FORMat:READing:CHANnel ON"); EscribePto ("*OPC?"); break; } return 0; i've already review the programmation manual but i can´t find the error, thanks in advance. |
|
相关推荐
1个回答
|
|
我将下面列表中的每个命令剪切并粘贴到我的34970A的Agilent Connection Expert交互式IO窗口中,一次执行一个,并且没有错误。
我所能建议的是发送* RST和* CLS,然后再试一次。 以上来自于谷歌翻译 以下为原文 I cut and pasted each command from your list below into the Agilent Connection Expert Interactive IO window for my 34970A, executed them one at a time, and got no errors. All I can suggest is to send *RST and *CLS and then try it again. |
|
|
|
只有小组成员才能发言,加入小组>>
1244 浏览 0 评论
2353 浏览 1 评论
2165 浏览 1 评论
2031 浏览 5 评论
2917 浏览 3 评论
988浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
718浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
818浏览 0评论
1245浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 02:18 , Processed in 1.374262 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号