09-05-2023 10:13 AM
Hi, I am new to Linux and NI devices.
We are working on the project and the goal is to use Python API on a Linux-based (Debian) to connect to an NI-9185 and read the acceleration data remotely.
I managed to get python script to work on my local PC (Direct Ethernet connect to NI-9185), but I have encounter several issues when I try to do the same on the Linux system.
I have installed the NI-DAQmx driver and followed the steps here without any error message. However, When I try to run the following code, the Jupyter Notebook Kernel always stops, and the log is also attached.
May I ask what may have caused the issue and how to resolve it? Also, I saw the NI-DAQmx-supported OS has only Ubuntu but no Debian. Is it even possible to get it to work on Debian?
Really appreciate your time and help!
import nidaqmx
with nidaqmx.Task() as task:
print(nidaqmx.__version__)
Solved! Go to Solution.
09-05-2023 10:20 AM
What does sudo dkms status show? How about sudo systemctl status nipal?
09-05-2023 10:24 AM
I tried the commands, the returns are below, anything looks off?
09-05-2023 10:58 AM - edited 09-05-2023 10:58 AM
Yes, the nipal service is not running. sudo systemctl start nipal.service should get it going for this session. However, it should have started on boot when you rebooted after installing everything, so if it is not then we should figure that out.
09-06-2023 10:14 AM
Thank you the code works!
But do you know what may causing this to not start automatically? Is there anyway we can fix this?
09-06-2023 10:15 AM
Does it fail to start again when you reboot?
09-06-2023 10:25 AM
Yes, it does, I also tried on another Linux machine (ubuntu) and same thing happens.
09-06-2023 10:28 AM
Also, when I follow the instruction to rap up the installation, the code (below) is not giving any response. Wandering if this is causing the issue.
BTW, due to the space limit on the server, I have only installed ni-daqmx package and nothing else, could this lead to the issue?
09-06-2023 10:33 AM
dkms status looks correct, so dkms autoinstall did what it needed to do. It may be that modules built during the installation process and there was nothing left to do.
If you did apt-get install ni-daqmx or similar, it will automatically install all of the necessary dependencies, so that shouldn't be a problem.
What exact version of Ubuntu did you try it on?
09-06-2023 10:41 AM
It's Ubuntu 20.04.
I reboot the Ubuntu again, and it is working now, I will try to reboot the server again later as well.