02-25-2020 06:44 PM
On Cent7, I added the repository and yum installed ni-daqmx just fine. /usr/include/NIDAQmx.h exists. Where are the example files? Is there a PDF, HTML, or other documentation package available for the C API? I've been going round and round on ni.com for an hour and not found anything, the windows paths are always referenced.
The directory /usr/local/natinst only contains a 'share' folder and not anything for daqmx as I've found (ancient, daqmx v8) references to.
04-23-2020 04:23 PM
You can find examples at http://www.ni.com/download/ni-linux-device-drivers-2018/7664/en/. There's a file called NI-DAQmx 18.1 Linux C Examples.zip. This contains examples in C with Makefiles provided. Have you successfully run "dkms autoinstall" after installing the NI drivers? That will tell you if all of the necessary packages have been installed. If that worked then you should be able to browse to one of the examples and just run "make" to build the example.