Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQmx with QT

Hi,

Where can I find a tutorial or an exemple to use DaqMx with QT under Linux Redhat ?
I want to drive a NI6503 24E/S board

Thanks

0 Kudos
Message 1 of 7
(4,598 Views)

Hello JG30100,

 

It is not an example or tutorial, but I have been working with Marc Gronle at the University of Stuttgart to port a niDAQmx plugin of the itom software system (see https://itom.bitbucket.io) to Centos 7. This is probably close enough to Redhat to give you some idea of what is required. Right now this project is in the very early stages and very incomplete, due to the plugin being a student project that was never really completed. However, I can send you a link to the git branch that I am working on if that will help. My hardware is a PCI 6220 card.

 

Regards,

 

Dan

0 Kudos
Message 2 of 7
(4,593 Views)

Yes, it could help me. I will be pleased to have your link.

JG30

0 Kudos
Message 3 of 7
(4,588 Views)

The niDAQmx-linux branch (of the itom plugin repository) can be cloned by:

 

git clone https://bitbucket.org/dnessett/plugins/src/niDAQmx-linux/

 

or viewed by pasting the url into your browser.

 

This provides the source to all the itom plugins. The one you are interested in is niDAQmx.

 

If you want to study the plugin code you will need access to the itom repository code, where many of the data structures are defined:

 

git clone https://bitbucket.org/itom/itom/src/master/

 

There is good documentation at: https://itom.bitbucket.io/documentation.html, and within that, the developer documentation is located at: https://itom.bitbucket.io/latest/doxygen/index.html

 

Here are some comments that might help you study the code: 1) itom makes heavy use of both qt5 and opencv data structures (the latter is a computer vision application - itom started out focusing on computer vision); 2) itom is a large program complex and if your main interest is niDAQmx using QT, I wouldn't pay much attention to the other plugins; 3) most of the QT5 data structures are defined in the QT5 file tree - on my machine this is installed by yum and the header files are in /usr/include/qt5.

 

I will attempt to answer questions about the niDAQmx plugin, but for more general questions about itom, you can join the email discussion list to which you can subscribe at: https://sourceforge.net/p/itom/mailman/.  There is an email archive at: https://sourceforge.net/p/itom/mailman/itom-discussions/

 

Cheers,

 

Dan

 

 

 

0 Kudos
Message 4 of 7
(4,575 Views)

Hi Dan,

Thanks but I cannot find the way to install DaqMx on linux and where  NiDaq libraries are to be able to use them.

Others ideas ?

0 Kudos
Message 5 of 7
(4,558 Views)
Hello JG30100,
 
The niDAQmx library for Linux is available only for CentOS, RedHat and Suse. The instructions to download it are found here:
 
 
Instructions for installation are found here:
 
 
Dan
0 Kudos
Message 6 of 7
(4,551 Views)

Hello dnessett,

It's a cool project. 

But as for the requirement of the project, i need to use the NI under Ubuntu 18.04. 

Do you have any experience on how to install the NI driver  on ubuntu?

Best wishes,

ZHongliang

0 Kudos
Message 7 of 7
(4,371 Views)