Python Error - nidcpower.errors.DriverTooOldError

Updated Nov 2, 2023

Reported In

Driver

  • NI-DCPower

Other

  • Python™ nidcpower module

Issue Details

  • When I try to run some example Python code for my SMU, the Python cannot find the NI DC Power functions:
AttributeError: function 'niDCPower_InitializeWithIndependentChannels' not found

attribute error.png
  • I'm using Python APIs to control my PXI(e) SMU. I receive the following error when running my code:
nidcpower.errors.DriverTooOldError: A function was not found in the NI-DCPower runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.

driver too old.png

Solution

This error is resolved by checking and updating the versions of NI DCPower, PyPI and Python.
The NI-DCPower Python API have been tested against NI-DCPower 2021, so older driver versions may not work. The required versions of software can be found at nidcpower.