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?