Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6210 with C/C++ in Linux

Hey,

 

I'm interested in the USB-6210 to use for my Bachelor's thesis. Unfortunately, I cannot buy any licences for LabVIEW and I have to work with Linux only. Are there any (open-source) options to simply measure 5 diff. channels of the 6210 with Linux? I'm thinking of C/C++... Maybe there are some libraries or even example codes available?

 

Thanks!

C.Cr

0 Kudos
Message 1 of 5
(4,567 Views)

Hi!

 

yes the driver the USB-6210 uses is the NI-DAQmx driver. The driver features a ANSI C and .NET API beside the LabVIEW support.

 

NI-DAQmx 16.0 Readme - National Instruments
https://www.ni.com/pdf/manuals/374768k.html

 

You can download the DAQmx API for free and if you install the MAX (Measurement & Automation Explorer) you can also simulate a USB-6210 and test if your driver call work.

 

Download:

https://www.ni.com/en/support/downloads/drivers/download.ni-daq-mx.html#288254

 

You find a lot of documentation for DAQmx for ANSI C & .NET and also there are a lot of examples that install with the NI-DAQmx driver:

 

Location of ANSI C NI-DAQmx Shipping Examples and DAQmx Library File for Windows

 

Using NI-DAQmx in Text Based Programming Environments

 

Where Can I Find Documentation for DAQmx Functions in All Visual Studio Environments?

 

Regards,

Christoph

Staff Applications Engineer
National Instruments
Certified LabVIEW Developer (CLD), Certified LabVIEW Embedded Systems Developer (CLED)


Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved
0 Kudos
Message 2 of 5
(4,531 Views)

Well, thanks for the effort I guess, but I'm not sure if I'm just stupid or if this is a major misunderstanding. As far as I can see, all the links are aimed at Windows users. Unfortunately, I cannot use Windows. That's why I'm asking...

 

Regards

C.Cr

0 Kudos
Message 3 of 5
(4,523 Views)

Sorry, I didnt see the 'Linux', only the no LabVIEW part.

There is also a DAQmx Linux driver called DAQmx Base:

 

NI-DAQmx Base 15.0 - National Instruments
https://www.ni.com/en/support/downloads/drivers/download.ni-daqmx-base.html#326059

 

There are some limitation (see readme for that), but in general you can follow most (Windows) tutorial for the C API.

 

Regards,

Christoph

Staff Applications Engineer
National Instruments
Certified LabVIEW Developer (CLD), Certified LabVIEW Embedded Systems Developer (CLED)


Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved
Message 4 of 5
(4,520 Views)

No problem! I'll look into that, Thanks 🙂

 

C.Cr

0 Kudos
Message 5 of 5
(4,516 Views)