NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

请教——串口通讯问题

Error -1073807252 occurred at VISA Read,An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived,有哪位大侠在用串口通讯时遇到过以上问题?如何解决的?当采集数量很大时,每次运行都出现该问题,而当采集数量校少的时候,偶尔会出现该问题,但是我已经设置了足够大的缓存区域。通讯的device的串口设置要求是波特率为115200,数据位为8,停止位为2,没有流控制。整个程序运行是host发送一次命令,device接收到命令,一定的时间延迟后,将所有的数据送出,当在程序运行到VISA Read模块时,出现错误Error -1073807252 。有哪位高人有解决方法,请赐教,不胜感激!
0 项奖励
1 条消息(共 12 条)
7,568 次查看
To 天樱:
Do you flush buffer before next sample? Maybe there is no correct data in your buffer.
Here is the example.
Hope it will help you!

Feel Good Inc. Love forever love is free. Let's turn forever you and me.
0 项奖励
2 条消息(共 12 条)
7,548 次查看
首先谢谢您的回复。我以前也试过VISA Flush I/O Buffer模块,但不知道放在何处?放在read模块前吗?我试过,不行。很遗憾的是我的Labview是7.1版本的,打不开您的程序,您能用7.1版本的给我发一个吗?十分感谢!
0 项奖励
3 条消息(共 12 条)
7,540 次查看

我也很想看,楼上的楼上能不能帖张图出来看一下啊,谢谢

用7express看来还挺不方便的说

0 项奖励
4 条消息(共 12 条)
7,536 次查看
This is the block diagram of the VI.

Feel Good Inc. Love forever love is free. Let's turn forever you and me.
0 项奖励
5 条消息(共 12 条)
7,528 次查看
To NangSgi:
  你的意思就是在读完之后将缓存给清空,那flush那个VI的mask不是需要接16或者是64吗,表示将接收缓存清空,mask不接任何数据是全部都清空吗?
0 项奖励
6 条消息(共 12 条)
7,515 次查看
mask designates the buffer to flush. Combine the buffer masks by bit to flush more than one buffer simultaneously. Use logical OR, also known as OR-ing or adding, to combine the values. Use only one mask value for the receive buffer and only one mask value for the transmit buffer.

Feel Good Inc. Love forever love is free. Let's turn forever you and me.
0 项奖励
7 条消息(共 12 条)
7,510 次查看
Use only one mask value for the receive buffer and only one mask value for the transmit buffer
可是你都没有maks value啊,上面的英文我看的半懂不懂的,不知哪位能够帮忙解释一下(in chinese)
0 项奖励
8 条消息(共 12 条)
7,508 次查看
to:Nang Sgi
我在read模块前加上了Flush Buffer模块,但仍出现前面描叙的错误,即在read模块后面出现Error -1073807252,An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived。程序如下
  
9 条消息(共 12 条)
7,506 次查看
程序见附件,帮忙看看问题出在哪,谢谢!
0 项奖励
10 条消息(共 12 条)
7,499 次查看