简体   繁体   English

从驱动程序制作 ah 文件,以便能够使用 c++ 中的驱动程序功能

[英]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.我最近买了一块数据采集板(“NI 6341”),它有一张带有驱动程序的 CD,但没有提供任何库 (.h) 来与之通信。 I think this is because they only want the board to be used by NI LAB VIEW, witch in theory recognizes it.我认为这是因为他们只希望 NI LAB VIEW 使用该板,理论上女巫承认它。

So, how can I get access to the driver functionality (make a library), so that I can use C++ to control the board?那么,我如何才能访问驱动程序功能(制作库),以便我可以使用 C++ 来控制板?

Is it possible to access driver callbacks in Windows and make a library?是否可以访问 Windows 中的驱动程序回调并创建一个库?

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 . NI 为 NI-DAQmx 提供C 和 C#Python和 LabVIEW 绑定以及 CD/DVD 的安装程序。 After you launch the installer, choose the language support you want, and install the software, you can find the NI-DAQmx header file here启动安装程序后,选择所需的语言支持并安装软件,您可以在此处找到 NI-DAQmx header 文件

<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. C 参考也在线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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