08-26-2011 02:11 AM
After correct measurement of 1 channel 1 sample analog data 1 per minute with the USB 6009 for 2 days, the device stops with the error -50405, see dialog:
Anyone knowing a solution?
Bart Veltkamp
Solved! Go to Solution.
08-26-2011 04:36 AM
Hi,
Would this link correspond to your issue?
Cheers,
Olivier L. | Certified LabVIEW Developer
08-27-2011 09:53 AM
Oliver,
Thanks for your reply.
Though no other USB devices have been added, I will try to use a powered USB hub. I will test next week and report the results.
friendly greetings,
Bart
08-27-2011 12:34 PM
ALSO!
a note on DAQmx (and here I'm shaking the magic 8-Ball BUT, I've seen this before) Make sure you are not creating the task each time you use it. Create the task once- use it forever, then and only then, destroy the task. Ther are only 4096 tasks that DAQmx can "remember". The timing suggests that you are call the create task operation twice per minute (86400/60*@2>4096)
Don't forget to change the hub power options either (from device manager) Windows defaults to allowing the OS to shut down USB power to conserve energy. This of course shuts down any Hub powered devices and resets them.
08-28-2011 10:25 AM
Thanks Jef,
I will look at the settings of the hub power options in windows device manager. Test next week.
Bart
08-31-2011 10:11 AM
I used an external powered USB hub and set in the device manager the USB devices to be not switched of by the system to conserve power. Up to now this works, no more error -50405. If the eroor returns I will post it here.
thanks guys,
Bart
09-06-2011 10:12 AM
The same error -50405 has recurred. So it seems that powering the USB hub and setting of the device manager to not switch off the power to the USB 6009 is not the remedy yet.
Resetting the USB 6009, after the error has occurred, in the program seems possible, but then also the 10 digital input tasks for this device have to be reinitialized, which seems to be a strange way of programming.
any ideas?
friendly greetings,
Bart
09-14-2011 09:11 AM
Hello,
If you are experiencing communication loss with your USB data acquisition device, a quality powered hub connected to USB 2.0 may help. Alternatively, consider trying a different PC.
Let me know if you get the same problem.
Regards,
09-16-2011 10:04 AM
I use a powered USB 2.0 hub from Belkin. Another PC did not help either.
bart
09-19-2011 09:06 AM
Hi Bart,
To bad that they didn't help you, but I found some info about your problem and hope that it will be useful for you.
http://digital.ni.com/public.nsf/allkb/99B52386D8D846228625696F0052B7C8?OpenDocument
Regards,
Hossein