NI-DCPower Library and C Example Location in Ubuntu

Updated Apr 29, 2024

Reported In

Hardware

  • PXIe-4190

Driver

  • NI-DCPower

Operating System

  • Linux

Issue Details

I would like to use the PXIe-4190 that I bought with Ubuntu. I know NI-DCPower supports Linux GCC but I am only able to locate examples for LabVIEW. Where can I find the Linux GCC example and library of NI-DCPower on Ubuntu?

Solution

Unfortunately, there is no NI-DCPower C example for Ubuntu, but you can access the NI-DCPower header files which are available in usr/include and as shown below while the NI-DCPower library files are available in /usr/lib/x86_64-linux-gnu.
Location of NI DCPower library in Linux.png

Please take note that there is no guide on how to use the library. 

You can refer to the CVI examples to create the C code but resources to support you may be limited due to the absence of C-based DCPower examples.

While we are recommending this as a workaround, as this is not officially supported by NI, unexpected behavior may occur.