Blue Screen Due to NIXSRK.dll on PXI Controller Shutdown

Updated Jul 20, 2023

Reported In

Hardware

  • PXIe-8840

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

After running a LabVIEW program on my PXI controller, I get a blue screen of death every time I shut down the system. The issue is indicated as a fault in the NIXSRK.dll driver 

Solution

The NIXSRK.dll is part of the DAQmx driver package, indicating the issue is likely related to a handling hardware resources properly.

Follow these steps to identify the problem: 
  1. Run a task through NI MAX that interfaces with a piece of hardware using the DAQmx driver and then shutdown the system to see if the blue screen of death (BSOD) is present. 
    • If the BSOD occurs, you likely have a bad driver install and need to repair the driver.
    • If there is no BSOD, the issue is related to improper resource management within your code. 
  2. Identify the hardware sessions that you are using in your code. 
  3. Ensure you are properly handling the resources in your task. The most likely culprit is not stopping or clearing a DAQmx task before attempting to shutdown the system. 
  4. If you are running multiple hardware sessions in your project, be careful to ensure all tasks have stopped and cleared before stopping the code. The recommended architecture for doing this would be using queued message handling to communicate across different sections of code.