NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
henders98
Posts: 3
0 Kudos

USB-4065 fails when a thumb drive is removed from the system

Hi,

 

I'm developing a Windows 7 embedded application in C++ using a NI USB-4065 DMM.  I'm using the NI-DMM 3.0.2 driver.  Our system contains several different USB (2.0) peripherals of which

the DMM is one.  All of the peripherals remain connected to the system except for one USB port to the outside world which is used for external thumb drives.  

 

The problem we are experiencing is that 95% of the time when the user removes the thumb drive while the system is powered on, the DMM begins to return errors immediately.  The error string

returned is usually:  "An error was returned by one of the internal function calls".  When this error occurs, I have tried both resetting and re-initializing the device through software, neither of which

work.  The only solutions I have had success with are 1) unplugging the DMM's USB cable from the system and reconnecting it, and 2) Rebooting the system.  Obviously, neither of these

solutions is desirable for an embedded application.  Also note that the USB-4065 is the only peripheral in our system that suffers from this problem.  

 

Can someone please advise on a fix to this issue?  Thank you very much.

Active Participant
Now_With_Underscores
Posts: 345
0 Kudos

Re: USB-4065 fails when a thumb drive is removed from the system

Hello Henders,


Is the open USB port that docks the flash drive on the same USB bus as the USB-4065? 

-John S
National Instruments
Analog Engineer
Member
henders98
Posts: 3
0 Kudos

Re: USB-4065 fails when a thumb drive is removed from the system

Hi John,

 

All of the USB ports are on different connectors from the CPU, but I'm not certain how it is handled internally.

 

Jessica

Active Participant
Now_With_Underscores
Posts: 345
0 Kudos

Re: USB-4065 fails when a thumb drive is removed from the system

Hey Jessica,

 

If you look in device manager, you should see your USB drive and our 4065 DMM in the tree.  If you right click on each of those devices, you'll see the port and hub number.  Thanks!

-John S
National Instruments
Analog Engineer
Member
henders98
Posts: 3
0 Kudos

Re: USB-4065 fails when a thumb drive is removed from the system

The 4065 DMM says "Port #0005, Hub #0004" and the USB drive is "Port #0001, Hub #0004".

 

 

Member
Chris-G
Posts: 87
0 Kudos

Re: USB-4065 fails when a thumb drive is removed from the system

Hi Jessica,

 

Try moving the DMM to a USB port that is on a different root hub. Maybe switch it with one of the other peripherals you have connected to the system.

 

The DMM and thumb drive are on the same root hub, so it's possible that this is just a problem with that particular USB root hub. It might also be worth doing a google search for updated USB firmware for your computer/motherboard. I've seen some USB connectivity issues fixed by updating the USB firmware for the computer.

 

Chris G

Applications Engineer
National Instruments
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page