02-21-2023 07:35 AM
Hi, I have installed NI-DAQmx driver and also nidaqmx python library in my linux machine.
This error show up when I execute below code:
File "/usr/local/lib/python3.8/dist-packages/nidaqmx/_lib.py", line 213, in _import_lib
raise DaqNotFoundError(
nidaqmx._lib.DaqNotFoundError: Could not find an installation of NI-DAQmx. Please ensure that NI-DAQmx is installed on this machine or contact National Instruments for support.
Is there anyone knows how to fix it?
04-26-2023 03:31 AM
I have similar issue, unfortunately did not find a fix yet.
my test code is:
import nidaqmx
system = nidaqmx.system.System.local()
len(system.devices)
for device in system.devices:
print(device.name)
And the result for "python testdaq.py" is:
Traceback (most recent call last):
File "/home/testdaq/testnidaqmx.py", line 3, in <module>
len(system.devices)
File "/usr/local/lib/python3.10/dist-packages/nidaqmx/system/_collections/device_collection.py", line 72, in __len__
return len(self.device_names)
File "/usr/local/lib/python3.10/dist-packages/nidaqmx/system/_collections/device_collection.py", line 90, in device_names
cfunc = lib_importer.windll.DAQmxGetSysDevNames
File "/usr/local/lib/python3.10/dist-packages/nidaqmx/_lib.py", line 160, in windll
self._import_lib()
File "/usr/local/lib/python3.10/dist-packages/nidaqmx/_lib.py", line 205, in _import_lib
raise DaqNotFoundError(
nidaqmx._lib.DaqNotFoundError: Could not find an installation of NI-DAQmx. Please ensure that NI-DAQmx is installed on this machine or contact National Instruments for support.
04-26-2023 05:05 AM
Small progress happened, got rid of the error message. Did the following:
#installs the nidaqmx from apt
apt install ni-daqmx
#reboot has to be done
reboot
But the errror kind of persists.
I edited a bit my testprogram:
import nidaqmx
system = nidaqmx.system.System.local()
print("There is %d devices available " % (len(system.devices)))
for device in system.devices:
print(device.name)
So "python testdaq.py" provides following output:
There is 0 devices available
while lsusb gives:
Bus 001 Device 003: ID 3923:71df National Instruments Corp. NI USB-6525
I guess the issue may be that the nidaqmx for linux does not support my beautiful usb6525 device :(, or does anyone have different knowledge?
04-26-2023
06:39 AM
- last edited on
03-20-2025
12:44 PM
by
Content Cleaner
USB6525 is truly not supported by linux:
Didn't find that link before. Fortunately solution was provided here:(https://forums.ni.com/t5/Linux-Users/Announcing-Linux-Device-Drivers-2023-Q1-and-LabVIEW-2023-Q1/m-p...)
04-26-2023 08:37 AM
All USB-based DAQmx devices (with the exception of USB cDAQ) are not supported on Linux Desktop and Linux RT.