miguel silvestre
miguel silvestre

Reputation: 1

make a .h file from a driver to be able to use the driver functions in c++

I recently bought a data acquisition board ("NI 6341"), which has a CD with the driver, but doesn't provide any library (.h) to communicate with it. I think this is because they only want the board to be used by NI LAB VIEW, witch in theory recognizes it.

So, how can I get access to the driver functionality (make a library), so that I can use C++ to control the board?

Is it possible to access driver callbacks in Windows and make a library?

Please help. Thanks in advance.

Upvotes: 0

Views: 252

Answers (1)

Joe Friedrichsen
Joe Friedrichsen

Reputation: 1986

NI provides C and C#, Python, and LabVIEW bindings for NI-DAQmx with the installer on the CD/DVD as well as online. After you launch the installer, choose the language support you want, and install the software, you can find the NI-DAQmx header file here

<Program Files>\National Instruments\Shared\ExternalCompilerSupport\C\include\NIDAQmx.h

and some example programs here

C:\Users\Public\Public Documents\National Instruments\NI-DAQ\Examples

And the C reference is also online.

Upvotes: 1

Related Questions