Status Code -50152 in NI MAX When Using PXIe-1090 Chassis

Updated Aug 15, 2024

Reported In

Hardware

  • PXIe-1090

Software

  • Measurement & Automation Explorer (MAX)

Issue Details

I have a PXIe-4468 installed in a PXI express slot and PXI-6221 installed in a hybrid slot of the PXIe-1090 chassis. If there is only one module installed to the PXIe-1090, no error occurred but when both modules installed to the chassis, I am getting an error as shown below in NI MAX.

Status code: -50152
A hardware failure has occurred. The operation could not be completed as specified


How can I solve this error?

Solution

The firmware, which should deploy automatically when the driver loads, is failing to do so, resulting in error -50152, indicating a hardware failure. 

To solve this issue, you can set up scheduled task to automatically restart the driver by following the steps below:
  1. Open Device Manager and look for the module driver.
  2. Right click the module driver and select Properties.
  3. In the Details tab, select Device instance path from the drop-down menu and copy the value.
1 (1).png
  1. Open Task Scheduler and click Create Task....
2 (3).png
  1. Enter a name for the task and tick Run with highest privileges.
3 (2).png
  1. In the trigger tab, create a new trigger and set the Begin the task to At log on.
4 (1).png
  1. In the Actions tab, click New.
  2. Select Start a program for Action, enter pnputil for Program/script, and for Add arguments (optional), enter /restart-device "Paste_the_Device_instance_path_here" and click OK. You should see something like figure below.
5 (1).png
  1. Click OK to create the scheduled task.
  2. Restart your PC and check if the script run automatically to resolve Error -50152 in NI MAX.

Alternatively, you can manually restart the driver by disabling and re-enabling the module in Device Manager to clear the error.