05-14-2009 09:17 AM
Hi,
I have a usb device and I want to periodically check if it is connected. I went through the NI VISA driver wizard and the device is now using NI VISA as its driver instead of using its defualt. The problem is when I've done this, software provided by the vendor doesn't work any more. Even I recycle the power, it is still running NI VISA.
So, my question is: how to let NI VISA release the usb device and revert to previous condition?
Also, how to check if a usb device (not a flash drive) is connected without using NI VISA? I think the kernal32.dll may be able to do this but I am not sure how.
Thanks a lot.
Bo
05-14-2009 09:34 AM
Update: problem solved by specifying the perticular driver in windows install new hardware ultility.
But the second question still remains: how to check if a usb device is connected without using NI VISA?
05-15-2009 10:41 AM
Hey Bo,
You should be able to look in Device Manager to see if the device is still connected to your system. Are you looking for a programmatic way to detect this?
05-15-2009 03:58 PM
hi,
Thanks for asking. Yeah, I am looking for a programmatic way of doing it. I actually ended up with using a C# dll to check the devicelist of windows and called the dll in labview. I thought there should be a more intuitive way of doing this...and my solution seems overkill. But I am happy it is working now.
Bo