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

Why does VISA show that a non-present device is still present?

$
0
0

I have NI VISA 5.4 installed and I'm using LabVIEW 2012 SP1 to control a USB HID devices using USB RAW. My computer is running Windows 7 Ultimate 64-bit. Using the VISA driver wizard, I created custom INF files that I have installed on my machine and the actual control portion is working great.

 

My issue is that once in a while VISA seems to think that a disconnected device is still present. As you can imagine, this messes with my application as it tries to talk to unit that really isn't there. Using LabVIEW VISA VIs, the device can still be discovered and attempted to be communicated with (it will just error out though). When I open NI MAX, I see the device listed as present even though it is powered off and disconnected from the PC.

 

While leaving MAX open, I can reconnect the same unit and nothing appears to change in MAX. The only difference is that now the device is actually connected and powered on. If I connect another unit, I see it populate in the device list. If I disconnect both units, the device I connected last disappears from the list but the first "phantom" device remains in the device list and is listed as present.

 

The immediate workaround I've found is to reboot the computer. Things seems to work OK for some time afterwards but will usually crop up again while using more than one USB RAW device in this manner.

 

Something else I just witnessed is that I left MAX and LabVIEW open on my work machine over the weekend and I still saw the phantom device listed as present  (it was not connected). I reconnected it and disconnected it and the device properly disappeared this time.

 

Has anyone else ever experienced similar issues? Can anyone explain what is going on? Since it is critical that my application can use more than one device at the same time, how can I ensure that the devices that are reported as available for use through the VISA VIs are really there and can be used?

 

Thanks!!


Viewing all articles
Browse latest Browse all 5634

Trending Articles



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