LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

driver

I want to write a driver,i use the simple visa to write.but i have error,Error-1073807339 occurred at VISA read in visa the reason is "timeout expired before operation completed

 

 

what is this meaning ?

0 Kudos
Message 1 of 5
(2,788 Views)

Heyy

 

May be, you are trying to read more number byte count then as the actual byte count data provided by instrument.

 

So By reducing byte count at read function, you may resolve your problem.

 

 

 

Regards,

Devang.

0 Kudos
Message 2 of 5
(2,775 Views)
0 Kudos
Message 3 of 5
(2,766 Views)

Try this out to solve your problem...

 

 

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.
0 Kudos
Message 4 of 5
(2,748 Views)

thanks Devang Gandhi

  I solved the problem


0 Kudos
Message 5 of 5
(2,742 Views)