08-09-2024 04:37 PM
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.
Solved! Go to Solution.
08-09-2024 06:23 PM
See USB Device Disconnects and Reconnects Periodically on Windows PC and Using USB Based DAQ Devices on a Bus-Powered Hub
08-09-2024 06:25 PM
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.
08-09-2024 07:58 PM
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?
08-09-2024 08:33 PM
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.
08-12-2024 09:15 PM
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.
03-16-2025 04:07 PM
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.
03-17-2025 08:17 AM
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.
03-17-2025 09:43 AM
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.