简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM