Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9215-USB (BNC) on CentOS 7

Solved!
Go to solution

Hello,

 

What version of ni-daqmx (base?) do I need to install in order to talk to the NI 9215-USB (BNC) on CentOS7? I finally got my GPIB working using a third-party library (https://github.com/vddvss/linux-gpib-packaging/issues/2), but I haven't been able to list the device using the most recent ni-daqmx installed using yum from the rpms provided here (http://www.ni.com/download/ni-linux-device-drivers-2018/7664/en/). It doesn't seem like they're supported, from what I see in the README.

0 Kudos
Message 1 of 12
(4,189 Views)

http://www.ni.com/product-documentation/6913/en/

 

 

It says that the USB 9215 should be supported, but then when I click on the Linux driver, it says that it isn’t supported. Clarification would be nice.

0 Kudos
Message 2 of 12
(4,163 Views)

I believe this knowledge article could be of use:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019NhFSAU&l=en-US

 

For what I see, your best bet would be to go with DAQmx base 15.0. In its readme file it enlist CentOS 7 as compatible and your USB-9215 is also listed. You can download it here:

 

http://www.ni.com/download/ni-daqmx-base-15.0/5644/en/

 

And its readme file is here:

 

http://download.ni.com/support/softlib//multifunction_daq/nidaqmxbase/15.0/linux/README.txt

 

I hope that helps!

 

 

 

 

0 Kudos
Message 3 of 12
(4,154 Views)

Mine is a 9215, not a 9215A... does that make a difference do you think?

0 Kudos
Message 4 of 12
(4,148 Views)

I believe it does, but in the txt readme file (link attached to my previous response) one of the entries for "Changes from previous versions" list the support for USB-9215 added since version 1.3.1

0 Kudos
Message 5 of 12
(4,143 Views)

Gotcha. Thanks.

 

I think I had tried this using the ni-daqmx included in the most recent CentOS .rpm repository yesterday, and then tried installing ni-daqmx v18 fom the .iso image, but without luck.

 

I will try the version that you have recommended this afternoon (Pacific time)

0 Kudos
Message 6 of 12
(4,140 Views)

Now I am getting this error:

 

$ lsdaq

 

Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
/usr/local/bin/lsdaq: /etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Steps to reproduce:

 

1. Install CentOS7

2. Install NIKAL using NI-VISA 16 (because: https://forums.ni.com/t5/Linux-Users/NI488-2-15-1-1-fails-to-install-on-Centos-7-3-1611/gpm-p/356876...)

3. Install NI-DAQmx Base 15.0 from http://www.ni.com/download/ni-daqmx-base-15.0/5644/en/

0 Kudos
Message 7 of 12
(4,129 Views)

Next, I ran:

 

sudo yum install glibc.i686 libstdc++.so.6

 

Now I get this error:

 

$ lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
/usr/local/bin/lsdaq: line 7: 7413 Aborted (core dumped) /etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices

 

# updateNIDrivers
bash: updateNIDrivers: command not found...

 

0 Kudos
Message 8 of 12
(4,128 Views)

I did a yum update, then I uninstalled nivisa16, then I installed nivisa17, then I uninstalled nivisa17, then I installed nivisa18 through the rpm -i sudo rpm -i rpm_RHEL7CentOS7.rpm, sudo yum install ni-visa.

lsusb works, but lsdaq still does not.

0 Kudos
Message 9 of 12
(4,120 Views)
Solution
Accepted by topic author jamwheeler

I got it. I had to install NIKAL v 17.5 for Linux in addition to the previous updates. After a reboot, I was able to see my device via lsdaq.

 

Because this is nidaqmx-base, and not nidaqmx, I don't have access to all the shiny features of the nidaqmx python library. However, PyDAQmx seems to do the job.

0 Kudos
Message 10 of 12
(4,111 Views)