Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx with LabVIEW 2011 under Linux (RHEL 6)

Hi all,

I don't mean to cross-post unnecessarily but the other thread on which I was asking questions was already marked as "Answered" so I thought I'd start a new one with a more accurate topic.

We recently purchased the LabVIEW Full Development System for Linux to use with our NI-6259 PCI card. I have been attempting for some time with no real success to get DAQmx 8.0.2 to work with LabVIEW 2011. The problem I'm having is that when I open LabVIEW 2011, it seems to detect the card (I can choose from any one of the 32 analog-in channels) but there are no DAQmx modules available: the "Measurement I/O" submenu is simply empty.

The steps I've taken:

  1. Install CentOS 6.3 (32-bit kernel 2.6.32-220.7.1.el6.i686) and all the various prereqs (gcc-c++, make, kernel-headers, kernel-devel)
  2. Install DAQmx 8.0.2 from http://joule.ni.com/nidu/cds/view/p/id/2322/lang/en
  3. Execute /usr/local/bin/updateNIDrivers as root to install NI-KAL, etc.

How it's working so far:

nilsdev lists my card:

[workstation@localhost ~]$ nilsdev

NI PCI-6259: "Dev1"

lspci -vv shows the kernel module is assigned to the card:

[workstation@localhost ~]$ lspci -vv

...

03:09.0 Unassigned class [ff00]: National Instruments PCI-6259

   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-

   Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-

   Latency: 64, Cache Line Size: 32 bytes

   Interrupt: pin A routed to IRQ 17

   Region 0: Memory at febff000 (32-bit, non-prefetchable)

   Region 1: Memory at febfe000 (32-bit, non-prefetchable) [size=4K]

   Kernel driver in use: nidaqmx_NIXS9x

rpm -qa shows that the latest version of NI-KAL is installed:

[workstation@localhost ~]$ rpm -qa | grep nikal

nikali-2.2.1-f0.noarch

NI-KAL 2.2 reports that RHEL 6 is supported, and although DAQmx 8.0.2 only advertises RHEL 5 support it doesn't seem to be having any kernel-based problems. My suspicion is that the drivers are working but that somehow they are not configured to work correctly with LabVIEW 2011.

Any advice or thoughts anyone has would be much appreciated. A full overview of my work so far (with output from the terminal) is available here: https://docs.google.com/document/d/17DETk-6WfWHBUb5ahtDl9sKbtm_u5Bsd0NwCsKyPzQM/edit

Thanks very much,

Mario

0 Kudos
Message 1 of 5
(5,825 Views)

It sounds like you copied over the VIs for DAQmx, but did you also copy over the menu files? I think that is what is missing. Look for daqmx.mnu or something similar.

Randy H

Message 2 of 5
(3,786 Views)

Come to find out that while DAQmx 8.0.2 works with Linux, it only works with LabVIEW 8.x versions. The README actually says this more or less but I must have glossed over it due to my lack of familiarity with the LabVIEW versioning system. Tech support later confirmed this. It was nice of them not to just write "RTFM" but I think that would've applied in this case.

Thanks for the help,

Mario

0 Kudos
Message 3 of 5
(3,786 Views)

Hi Mario,

It should be possible to use DAQmx 8.0.2 for Linux with a newer version of LabVIEW, but this combination isn't officially supported or fully regression tested. Copy the DAQmx VIs, RC files, menus, etc. from the LabVIEW 8.6 directory to the LabVIEW 2009/2010/2011 directory as described in this thread: DAQmx for Linux Labview 2009?

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 4 of 5
(3,786 Views)

Brad,

This worked like a charm. You guys were definitely both on to something with copying over the DAQmx files to the LabVIEW 2011 directory -- I used the method from the thread you linked to almost verbatim and it seems to be working perfectly.

I've written up the whole installation procedure as a HOWTO document over here:

https://decibel.ni.com/content/docs/DOC-22110

Thanks all,

Mario

0 Kudos
Message 5 of 5
(3,786 Views)