NI-845x: Internal Error -301709 in LabVIEW

Updated Dec 7, 2023

Reported In

Hardware

  • USB-8452

Software

  • LabVIEW

Issue Details

When running a VI that connects to the DUT via SPI or I2C protocol with the use of NI-845x, I randomly receive the following error:
Error -301709: NI-845x: An internal error has occurred. Contact National Instruments technical support at ni.com/support.

Solution

The error -301709 mainly occurs when the connection with the NI-845x device is lost. This can be due to the device consuming very little, or excessive power, thus resulting in the USB entering a power saving mode.

In order to disable the USB Power Saving option, please follow the steps below:
  1. Open Control Panel
  2. Click “Hardware and Sound” 02.2-Windows-10-Control-Panel-Open-Hardware-and-Sound.jpg
  3. Press “Power Options”02.3-Windows-10-Control-Panel-Hardware-and-Sound-Open-Power-Options.jpg
  4. Click “Change plan settings”
  5. Press “Change advanced power settings”
  6. Look for the USB selective suspend settings and disable it
    02.6-Windows-10-Hardware-and-Sound-Power-Options-Change-Selected-Plan-Change-Adv-Power-Settings-Choose-USB-Settings-.jpg
If the issue still persists, try using a USB hub with an external power supply in order to provide enough power to the device.