Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5340

Vi Session dropped Connections

$
0
0

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?


Viewing all articles
Browse latest Browse all 5340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>