Linking errors can occur if you have installed the DAQmx driver but the support for ANSI C was not included in the install. You can modify your installation of DAQmx to include ANSI C support by following the steps in Location of ANSI C NI-DAQmx Shipping Examples and DAQmx Library File
The DAQmx APIs include support for LabWindows/CVI, C, C++, Visual Basic 6.0, VB.NET and C#. For further information, please refer to Using NI-DAQmx in Text Based Programming Environments
You will need to install the DAQmx driver on the development and target machines to be able to properly access the DAQmx API. Copying over the .dll
, and .h
files is insufficient, as the DAQmx driver references a host of other .dlls and files. The only way to ensure correct functionality is to install the full DAQmx driver, which can be downloaded from the NI website: Download NI-DAQmx Driver
See the Related Links section below for information on how to find the reference documents/function help for the DAQmx API.