Creating an ANSI C Application without LabWindows/CVI
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»NI-DAQmx C Reference Help.