LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Vi Session dropped Connections

I am using viOpenDefaultRM to intialize the visa resource manager than viOpen to open a TCPIP socket connection. I can then read and write using the viSession ID. The issue I am facing is that if the device I am connected to drops the connection due to time out or power cycle I don't recognize this event. Subsequent reads and writes to this dropped viSession ID result in undetermintic results. Sometimes these calls do nothing (timeout?) and graceful return other times they result in the application hanging in the open and / or read call.

 

What is the recommended way to handle this situation?

0 Kudos
Message 1 of 1
(3,934 Views)