Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa TCPIP Socket Read Error

Hi All

 

I need to control an device using a LAN cable connection. I am able to communicate with the device and i able to write a string into the device, however when i try to read out the data and the response from the device, it just simply pop me an error

 

VISA : (Hex 0xBFFF0015) Timeout expired before operation completed.

 

From this, i try to increase my timeout error to 10s (10000) and try again but no luck. I don't know what happening from that .

 

I try to use normal TCPIP socket which is not a visa, when i read out the data, it is OK

 

Does any body know what's happening ??

 

Thanks

 

William Lee

0 Kudos
Message 1 of 4
(4,172 Views)

Hi All

 

Btw, I use labview 7.1. Now I faced a problem that when I write a string thru the visa Write function, it pop me the error:

 

The connection for the given session is lost ...

 

 

I try to reconnect the device but still same pop me the error that stated above.

 

I don know what happening, can somebody help..... 

0 Kudos
Message 2 of 4
(4,158 Views)

Please refer to the attachment is a NI Spy file

 

Btw the the timeout timer I use is 30s.

0 Kudos
Message 3 of 4
(4,154 Views)

Hi William,

 

Thanks for the info, the NI Spy log seems to indicate that Write and Read are not working as expected. To help further could you drop me the VI you are using along with some information about what it's doing please, it may just require some TCP KeepAlive functions or perhaps the use of some additional properties on the VISA reference line but additional information will help me narrow that down.

 

Kind Regards, 

Applications Engineer
0 Kudos
Message 4 of 4
(4,123 Views)