ANSI C Application without LabWindows/CVI
- Updated2025-12-03
- 1 minute(s) read
NI-DAQmx has a C API that you can use to create applications. To create an application, follow these general steps:
- Create a new project.
- Open existing or new source files (.c), and add them to the project. Make sure you include the NI-DAQmx header file, nidaqmx.h, in your source code files. You can find this header file at NI-DAQ\DAQmx ANSI C Dev\include.
- Add the NI-DAQmx import library, nidaqmx.lib, to the project. The import library files are located under NI-DAQ\DAQmx ANSI C Dev\lib\.
- To view examples of NI-DAQmx applications, go to the NI-DAQ\Examples\DAQmx ANSI C directory.
- Build your application.
For help with NI-DAQmx functions, refer to the NI-DAQmx C Reference Help, which is installed by default at Start»All Programs»National Instruments»NI-DAQ»Text-Based Code Support»NI-DAQmx C Reference Help.
For help with using the DAQ Assistant with ANSI C, refer to Using NI-DAQmx in Text Based Programming Environments.