找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 4492|回复: 2

VISA读取—framing error解决办法

[复制链接]
发表于 2009-10-14 15:54:44 | 显示全部楼层 |阅读模式
在利用VISA读取时发生错误:
Error -1073807253 “A framing error occurred during transfer. ”

解决办法之一是在VISA Configure Serial Port 之后加10至100ms的延时
详见:http://digital.ni.com/public.nsf/websearch/F3E0621CB71AA16786256F970000FC57?OpenDocument
发表于 2009-10-15 00:03:28 | 显示全部楼层
好东西,我贴过来!
原地址:http://digital.ni.com/public.nsf/websearch/F3E0621CB71AA16786256F970000FC57?OpenDocument


Error Code -1073807253 When Using VISA Read
Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am outputting a sequence of characters from a third party device every 160ms and reading it serially using a VISA read. The device will continuously output the data whether the program is on or off. However, I get a framing Error -1073807253 when reading. Why?

Solution:
The fact that the hardware is emitting data every 160ms whether or not the program is running is the reason for the error. The port is probably not configured by the time it receives the first character so it reads a buffer with invalid information. By putting a delay (approximately 10-100 ms) after the VISA Configure Serial Port you allow the serial port enough time to configure itself. Then, by using a VISA Flush I/O Buffer VI, you can clear any invalid data in the buffer. Reading after this sequence should work correctly.

Your block diagram should appear as shown below:
回复 顶

使用道具 举报

发表于 2009-10-15 00:04:29 | 显示全部楼层
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-29 09:46 , Processed in 0.028416 second(s), 7 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表