0

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.

Ann Kilzer
  • 1,266
  • 3
  • 16
  • 39
  • Hi Miguel! Does your driver comes with dlls? – Danilo Sep 21 '19 at 12:13
  • Only one with the name updateMnager.dll – miguel silvestre Sep 22 '19 at 23:00
  • https://stackoverflow.com/questions/1548637/is-there-any-native-dll-export-functions-viewer you can use this link as a base. Using DLL viewer of any kind you can track which lower level functions DLL is calling. Some viewers (that you pay) can export lib files that contains functions and etc. But in general if you fiddle around with dynamic linking you should be able to eventually figure out what is what – Danilo Sep 23 '19 at 05:33

1 Answers1

1

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.

Joe Friedrichsen
  • 1,976
  • 14
  • 14