Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

VISA port cannot be opened after disconnecting a device and reconnecting it

$
0
0

I have this very annoying problem in LabView (2014): I have devices that I'm communicating with over a virtual COM port (VISA). If I erroneously disconnect or power off that device while my VI is running, then I get an error, which is normal - but if I repower or reconnect the device, the VI will never run again and gives the following error:

 

Error -1073807343 occurred at VISA write in xy.vi

Possible reasons: (Hex0xBFFF0011) insufficient location information or device or resource is not present in the system.

 

When this happens, I can still see the COM port in the COM port list (placing a control on the front panel); But it's marked as connected. It appears to me that if I unplug the cable, VISA doesn't properly close/release the port and it remains there as some kind of zombie port, and when I reconnect my device, it still can't access it because the old error is still there.

The only thing that helps is to restart LabView, which is a bit of a nuisance.

 

Can anyone suggest how to solve this without restarting LabView?


Viewing all articles
Browse latest Browse all 5565

Trending Articles



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