swcy225 发表于 2008-11-14 09:20:50

关于串口的问题

错误显示在这句上ComRdByte (COMPort);
下面是什么意思呀:
NON-FATAL RUN-TIME ERROR:   "8034.c", line 423, col 16, thread id 0x00000690, function id 1:   Library function error (return value == -99 ). I/O operation timed out


以前都没这个错误,今天才出现的,请高手帮帮忙~说是Run_Time Error

swcy225 发表于 2008-11-14 09:38:03

好像是串口没插好~~~

swcy225 发表于 2008-11-14 09:38:13

????????

netcreature 发表于 2008-11-14 11:55:36

I/O operation timed out
这句话说明在读串口时超时了。如果排除线路故障,可使用SetComTime()将超时时间设置的大一点。

页: [1]
查看完整版本: 关于串口的问题