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

打包后,程序运行时,会出现Error1073807339的错误

[复制链接]
发表于 2009-3-11 14:15:19 | 显示全部楼层 |阅读模式
大家遇到过吗?
怎么解决呢?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2009-3-11 14:18:05 | 显示全部楼层
Problem:
When I try to do a VISA read or a VISA write, I get VISA error -1073807339: VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed. How can I fix this error?

Solution:
Use the following steps to debug this or other serial timeout errors:
  • Verify that all the serial settings are correct (for example, baud rate, data bits, and stop bits). The device and the serial port must have the same settings.
  • Try increasing the VISA session timeout value.  This error often occurs when you are reading or writing large amounts of data and it takes longer than the default timeout to send or receive the data.
  • If you are experiencing this error for a VISA Read, verify that you are not trying to read too many bytes. Read only 1 byte at a time while debugging.

    Note: If you do not get the error now, increment the number of bytes you read until you get the timeout error again. This tells you how many bytes that command sends back.

    You can also use a Property Node to read the Number of Bytes at the Serial Port. Right-click the Property Node and select Select VISA Class»I/O Session»Serial Instr. Then right-click the Property Node and select Properties»Serial Settings»Number of Bytes at Serial Port
  • If you still receive the error while reading only 1 byte, verify the command to make sure it has been written correctly.
Note: Verify that you have terminated the command string correctly. A new line or carriage return is often required at the end of a command. A good way to test this in LabVIEW is to right-click the command string control on the front panel and change the display to '\' Codes Display mode. In this mode, a carriage return is \r, a line feed is \n, and an end of line is \r\n. Verify that the command being sent to the serial device has the termination character that the device requires.
回复 顶

使用道具 举报

 楼主| 发表于 2009-3-11 14:18:20 | 显示全部楼层
Problem:
I am performing a VISA Write operation, and have received error -1073807339 that says, "Timeout expired before operation completed." What does this error mean, and how can I fix it?

Solution:
This error usually occurs when you are writing large amounts of data. You will receive this error if it takes longer than the default timeout to send your data. The easiest solution to this problem is to increase the timeout value for your VISA Session. You can do this using the VISA Set Timeout VI located on the VISA Advanced Palette in LabVIEW.





Note: Changing the Timeout value for your VISA session will affect all VISA Writes and Reads in your session.

Related Links:
KnowledgeBase 3F4AG87U : Default Time-out for VISA Read and Write VIs
VISA Troubleshooting Wizard
回复 顶

使用道具 举报

 楼主| 发表于 2009-3-11 14:19:20 | 显示全部楼层
从
NI网上找到的,希望能解决问题
回复 顶

使用道具 举报

 楼主| 发表于 2009-3-11 16:41:42 | 显示全部楼层
测试了一下,没报错
应该是解决了吧
回复 顶

使用道具 举报

发表于 2009-3-12 08:49:58 | 显示全部楼层
超时,设备没有返回信息。确认下面有信息发回来么
回复 顶

使用道具 举报

 楼主| 发表于 2009-3-25 22:31:13 | 显示全部楼层
把timeout改大些
超时是对方的原因造成的,我这里只能把timeout改的大些
回复 顶

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-9-29 17:33 , Processed in 0.051446 second(s), 12 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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