Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ USB-6210 is not working in linux with NIDaqMxBase driver

Hi All,

 

          I am a new bee in this forum. So please dont mind, If i did not follow the proper structure in this post.

 

 

I am trying to using DAQ USB-6210  in linux. Please find my setup details below.

 

OS : Linux ( Using Cent OS 5. Its identical to RedHat enterprise edition 5).

 

Driver: NiDaqbasemx 3.3 ( Installation is sucessfull, Used ./INSTALL script available in it)

 

Device : USB-6210.

 

After installing the driver, I ran "lsdaq" command.

 

Sometime it detects my device as USB-6210. But sometimes I get the following output:

 

---------------------------------------------------------------

Detecting National instruments DAQ devices:

 

Found the Following  DAQ devices:

 

VISA Read in Flush_Visa_USB.vi->Check 621x Firmware Version.vi->Find Devices.vi->daqmxbase_listdevices.vi->daqmxbase_lisdevices_ProxyCaller--------------------------------

 

-----------------------------------------------------------------

 

Further If i run the example program (  acquire1Scan) the I get the following error.

 

Device Identifier is Invalid

 

 

I have traced where exactly the program fails and found that  DAQmxBaseCreateAIVoltageChan() function creates the error.

 

Please let me know how to make this device work with C. Thanks in advance for your help.

 

PS: Data Logger installed in Linux properly works. I mean, I am able to see the sampled output.

 

 

 

 

0 Kudos
Message 1 of 4
(4,171 Views)
NI-DAQmx for Linux includes an API for both LabVIEW 8.0 and ANSI C. This gives the user the flexibility to create their application using the LabVIEW graphical development environment or a standard C compiler, such as gcc. Below is a list of limitations for your consideration when using the NI-DAQmx driver for Linux:

Limitations
  • The NI-DAQmx DAQ Assistant is not supported on Linux.
  • The NI Measurement & Automation Explorer (MAX) application is not supported for Linux system and device configuration. The following commonly used functions and features supported through MAX are not supported on Linux:
    • Device self-test
    • Device subsystem routing table
    • Querying of digital/analog power up states
    • Creating a simulated device
  • USB data acquisition products are not supported on NI-DAQmx in Linux. Use NI-DAQmx Base 2.1.
  • PCMCIA data acquisition products are not supported on Linux.
  • NI-Switch is not supported on Linux.
  • LabVIEW - The following features available on LabVIEW for Windows are not supported on Linux:
    • NI-DAQmx Express VIs
    • Code generation through use of the DAQ Assistant
    • The Timed Loop data structure
    • LabVIEW Real-Time targets
    • NI-DAQmx support for projects

Refer to the NI-DAQmx 8.0 Readme for Linux(r)/x86 32-bit file for a complete list of supported devices.
Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 2 of 4
(4,145 Views)

Hi,

 

     Thanks for your reply. But I am not using Daqmx driver. I am using DaqmxBase3.3 version.

0 Kudos
Message 3 of 4
(4,134 Views)
Hello everyone,

Sathya is correct: DAQmx Base 3.3 is the driver that should be used for USB-621x devices in Linux. DAQmx 8.0.1 only supports PCI/e and PXI/e plug-in boards, and cannot interact with USB devices.

Sathya, what is the ratio of device detection to device error with the lsdaq command? If you write a simple C program that uses VISA to detect your board [1], does it work more reliably?

The error that you're seeing is quite odd. In what kind of environment is the computer -- is it possible for the USB connector to become unseated or mis-aligned?

[1] Use VISA viFindRsrc() to detect DAQmx Base USB devices in Linux
http://forums.ni.com/ni/board/message?board.id=250&message.id=52959&query.id=38830#M52959
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 4 of 4
(4,068 Views)