fjczd 发表于 2009-3-11 14:15:19

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

大家遇到过吗?
怎么解决呢?

fjczd 发表于 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.

fjczd 发表于 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

fjczd 发表于 2009-3-11 14:19:20

从
NI网上找到的,希望能解决问题

fjczd 发表于 2009-3-11 16:41:42

测试了一下,没报错
应该是解决了吧

baby 发表于 2009-3-12 08:49:58

超时,设备没有返回信息。确认下面有信息发回来么

fjczd 发表于 2009-3-25 22:31:13

把timeout改大些
超时是对方的原因造成的,我这里只能把timeout改的大些
页: [1]
查看完整版本: 打包后,程序运行时,会出现Error1073807339的错误