Creating an Application with LabWindows/CVI
If you program your NI-DAQmx-supported device in LabWindows/CVI, you can interactively create global or local virtual channels and tasks by launching the DAQ Assistant from MAX or from within LabWindows/CVI. You can generate the configuration code based on your task or channel in LabWindows/CVI. Refer to the DAQ Assistant Help for additional information about generating code. You also can create local virtual channels and tasks, and write your own applications using the NI-DAQmx API. To create an application, follow these general steps:
- Create a new project file (.prj).
- Open an existing or new source file (.c).
- Add your source file to the project.
- Select NI-DAQmx from the Library Tree, and choose the function panel you want to use.
- To view examples of NI-DAQmx applications in LabWindows/CVI, launch the NI Example Finder.
- Build your application.
For help with NI-DAQmx functions, refer to NI-DAQmx C Function Reference Help. For general help with programming in LabWindows/CVI, refer to LabWindows/CVI Help, accessible through Start»All Programs»National Instruments»LabWindows CVI»LabWindows CVI Help.