LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force closing a USB connection

Hi.

I'm working with a USBtoCAN adapter (Titan-SI-M) and I'm using their library that I adapted a bit for my needs.

Everything works fine, except if for any reason labview stops before closing the connection, then the connection stays open.

So if the connection has been opened, labview crashes, we start the app again, the connection will fail (the handle returns -2) and there is no way to close it and re-open it with their library. 

The only method I found was to unplug and re-plug the usb cable.

 

Is there any other way to do it programatically instead?

Thanks in advance.

Best,

Vinny.

0 Kudos
Message 1 of 1
(764 Views)