From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

I have an MFC Visual C++ application that is linked with the nidaq32.lib, from ni-dac version 5.1. What are all of the other ni-daq 5.1 related files that must be present in order for this application to initialize and run?

Since there are not C++ class libraries provided for data acquisition (DAQ) yet, you must use one of the previously available methods for programming DAQ in Visual C++. There are two optional Application Programmer Interfaces (APIs) available in Visual C++: the DAQ C API, and the ActiveX DAQ controls. The DAQ C API is normally the best choice for data acquisition in Visual C++ since it uses C data types and is programmed in a standard C style. The ActiveX controls use data types that are not native to C++ like Variants and Safearrays and they are programmed through an ActiveX style of programming. The Tools for Visual C++ do provide tools that make both of these APIs easier to use through the provided data type classes.

Install NI-DAQ help for C++ to see examples for the DAQ C
API, and install ComponentWorks' help for C++ to see the ActiveX DAQ Controls. There are examples of both on the web in the NI Developer Zone.

Note: As of version 3.0 of ComponentWorks, this software is part of a package called Measurement Studio which also includes LabWindows/CVI and Tools for Visual C++. For this version you should use the Tools for Visual C++ and calls to DAQ functions that are in your DAQ User Manual
0 Kudos
Message 2 of 2
(4,640 Views)