Error -50405: No Transfer Is in Progress at Self Test

Updated Apr 18, 2023

Reported In

Software

  • Measurement & Automation Explorer (MAX)
  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

Sometimes my USB data acquisition device stops responding. Why is this happening? What is the best way to re-establish communication, and how can I prevent this behavior in the future? 

I receive error:
Error -50405 occurred at Self Test

Possible Reason(s):
No transfer is in progress because the transfer was aborted by the client. The operation could not be completed as specified.

Solution

DAQ USB Device

Error -50405 occurs when you are using a device plugged into a USB 2.0 host controller, and you unplug or insert a second device. In some cases your device stops responding and must be reset from the host, either interactively using MAX or programmatically using the driver.

To re-establish communication with a USB DAQ device, perform one of the following procedures. Not all procedures listed here work in every situation; therefore, if one option doesn't work, then try another one.
  • Disconnect and reconnect your device from the system.
  • Try plugging in your device into a different USB port on your computer.  This can cause your computer to do another auto-detect on your hardware and re-establish communication.
  • Open Measurement & Automation Explorer (MAX) and expand Devices and Interfaces to locate your device. Right-click the device in the list and select Reset Device.
  • Try to programmatically reset the USB DAQ device following this community example: Community Example: Programmatically Reset USB DAQ device in LabVIEW
  • Reboot the system.
To verify that your NI USB device is now working, open Measurement& Automation Explorer (MAX) and expand Devices and Interfaces. Then right-click your NI USB device and click Self Test. 

Ethernet DAQ Device (918x)

  • Verify that only one Ethernet adapter is active on your computer. To do this, open the command prompt and type in ipconfig. Check how many Ethernet adapters appear in the command prompt display. If multiple adapters are present, disable all but the LAN port. This may be necessary if your computer has a wifi port enabled.
  • Use Windows Event Viewer to monitor events around the time of the network failure to identify a root cause

Additional Information

Avoiding Communication Loss 
Under normal circumstances your USB device should not stop responding during acquisition. However this issue can occur on some PCs when plugging or unplugging additional USB devices while the computer is powered on. 
  • Make sure your USB cable does not exceed the length limits defined by the USB specifications.
  • Try using a different, high quality USB cable to communicate with your DAQ device.
  • If you are using a laptop computer, check your power settings to make sure that the USB ports are not being turned off to conserve power.
  • Under some circumstances if the USB cable becomes damaged and disconnects intermittently, replacing the cable would solve the issue.