Thanks
I changeg my serial port line, copy the NI program to another computer, installed with both labview 7.1 and labview 8.2.
but nothing changed
其实你已经收到了响应.串口发送或接收到的数据在你进行读之前都存在于缓冲区内,所以你要在发送命令之后立即去读,也就是清空缓冲区.这样就可以保证一个请求对应该一个响应.
你可以试试下面这个程序.
谢谢greatwall
你的程序刚刚试过了。
串口写AE是为了设备启动,没有返回值,所以,接着后面的读出命令出现1073676294错误代码,
Warning 1073676294 occurred at VISA Read in 串口 GREATWALL.vi
Possible reason(s):
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.
在之后继续运行,又出现相同的-1073807253错误。
还是不能解决