Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009 DAQ random suspension when used via a USB hub

Solved!
Go to solution

I have a prototype that uses the USB 6009 for Analog and Digital I/O for controlling a dc motor and solenoid valve through a relay board and a Labview VI. It all works great.

However, I also have some 2 sensors that have their own USB connectors. So, I have to use a USB-hub to allow these 3 USB-based devices to operate in parallel. This is where I start seeing problems. Every few hours or so, the DAQ goes into suspend mode and stops communicating [indicated by the onboard LED not blinking]. My only recourse at that point is to reset the DAQ using NI Max. It resumes operation after that but only to suspend again in some time. 

 

The DAQ suspend problem occurs more often when I use a Windows Tablet as opposed to a Windows Laptop. The Tablet or Laptop remains powered on all the time - so this is not because of loss of power. And the problem occurs equally as often when I use an externally 5V DC powered USB-hub. 

 

Is there any solution? Thank you all for your help/guidance. 

0 Kudos
Message 1 of 9
(659 Views)

See USB Device Disconnects and Reconnects Periodically on Windows PC and Using USB Based DAQ Devices on a Bus-Powered Hub

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 9
(647 Views)

If you're using a cheap self-powered hub, have you ensured that all three devices + hub can safely operate within power limits from one USB port?

 

For USB 2.0, you can draw only 500mA @ 5V per port.

 

Check your windows power settings to not power down USB devices when not it use.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 9
(646 Views)

Thanks for that, Santhosh. I use the Sabrent USB 3.0 hub which can also be externally powered. And no, the computer sleep setting has been disabled - so pretty sure that is not the reason. And my VI runs continously in an automated mode. The suspend has almost always happens when the pump is running at  certain speed [DAQ AO > 0.1V], as opposed to a baseline very slow speed [~0.01V]. 

Cost is not a concern - what would be a high quality hub? 

0 Kudos
Message 4 of 9
(631 Views)

Please share your full connection diagram; it looks like the back emf signal or noise when the motor runs are disrupting your USB devices. When controlling mains-powered equipment, especially inductive loads, you must shield and isolate the control system well to keep it stable.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 9
(627 Views)

Hi Santhosh - Please see attached wiring diagram I have tried to draw up. Hope this makes sense. I have also attached the pump driver spec sheet. I greatly appreciate your help with this and further insight on resolving this issue. How does one resolve the back emf issue if that is reason behind this odd DAQ suspend behavior? Indeed the problem only occurs when the pump runs at a non-zero AO from the DAQ - but that only happens when I am using the USB hub with 2 other active USB connections [so, 3 in total]. The problem doesn't occur if it is just the DAQ running the pump and relay boards. 

Sid05_0-1723514939518.png

 

0 Kudos
Message 6 of 9
(583 Views)
Solution
Accepted by topic author Sid05

This issue was eventually resolved. It had to do with using a USB hub. NI does not guarantee performance with that. I ended up using a mini-PC which had independent USB ports. I did not observe any issues of DAQ card getting suspended with this independent USB port set-up. 

Just putting it out here if somebody else runs into this issue in the future. Thank you. 

0 Kudos
Message 7 of 9
(103 Views)

I know, I'm late to the party. I'm just throwing in my 2 cents as an after thought.

 


@Sid05 wrote:

I use the Sabrent USB 3.0 hub which can also be externally powered. 


Whenever using a USB hub, make sure you are using the externally powered option. I have seen way too many times, especially on laptops, where the USB port cannot sustain a hub and a peripheral or two.

 


@Sid05 wrote:

what would be a high quality hub? 


I am personally a big fan of Startech. I use this hub regularly and have yet to have any problems: https://www.startech.com/en-us/usb-hubs/st7300usbme. There is a USB 3.2 version also available if you need more bandwidth. Yes, they are on the pricey side, but it is worth it for the industrial grade protections.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(78 Views)

Thanks for that additional note. The interesting thing is that the DAQ suspension was happening even when the USB hub was externally powered [as opposed to bus powered]. So, I am having to conclude that the issue stems from using independent USBs - which a laptop or mini PC "apparently" does.   

0 Kudos
Message 9 of 9
(68 Views)