您好,我希望有人可以帮助我,我正在编写一个程序扫描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.