06-04-2015 05:47 AM
My problem is sth similar to this:
but I decided to open a new thread because that one is too old.
The driver works fine almost all the time, but there is an annoying problem happens when this sequence is followed right after device is plugged:
1. Plug usb 6211 device to usb port
2. start NI-Max or Matlab immediately, dont wait for 'USB 6211 detected' message. (anything uses the drivers)
3. Device driver is not loaded, instead 'usb driver loader' appears at device manager and NI max.
I tried rescanning, resetting the hub at which daq is connected(using devcon), but no luck. The only way to get it working again was to cut power from the DAQ, wait for some time and re-plug.
I can detect if this situation happens in software using devcon and system calls, but I want to fix it in software. Can you help me in this?I hope my question is clear.
Thanks
06-08-2015 09:28 AM
The problem is really annoying and time consuming. It hangs at 'USB Driver Loader' and does not load actual driver. Does anyone know what is going on?
Any help is appreciated. This is kinda important. The end product can be very displeasant to the user because of this. I want to handle this programmatically.
I tried resetting the hub using devcon but no luck.
06-09-2015 02:42 PM
Hi sarpedeon,
What version of NI-DAQmx are you using with the device?
You mentioned that when you start NI-MAX you do not wait for the "USB 6211 detected" message. If you do wait for this message does it change the behavior?
If you look in the services on your computer is the NI Device Loader service running?
Regards
06-10-2015 12:58 AM
Hi SeaSick, thank you;
I'm using version 14.0.
I checked the service and it is running.
If I can see the 'USB 6211 detected' message everything is just fine. But, it does not appear at all when driver loader hangs at 'usb driver loader'. In fact most of the time, driver loads just fine with no problem. (and message 'USB 6211 detected' appears.)
But, if
- I open Matlab or NI Max while it is loading the driver,
- I unplug the device while Matlab was open,
driver is not loaded. I tested this on 4 computers in our office, it occurs at all of them. I'm using the daq thru a usb hub; but I tested without the hub and problem is there.
Only option to solve the issue is unpluging device, waiting couple of minutes and repluging it. there gotta be some sort of software trick to do this without unplugging the device.
thanks for response, again.
06-11-2015 12:25 PM
Hi sarpedeon,
When the driver hangs are you able to see the device in MAX?
It may be worth a shot to upgrade the driver that you are using to see if that changes the behavior. Below is the link to the most recent DAQmx driver (14.5.1.)
http://www.ni.com/download/ni-daqmx-14.5.1/5271/en/
Regards