Creating an Application with LabWindows/CVI

NI-DAQmx

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:

  1. Create a new project file (.prj).
  2. Open an existing or new source file (.c).
  3. Add your source file to the project.
  4. Select NI-DAQmx from the Library Tree, and choose the function panel you want to use.
  5. To view examples of NI-DAQmx applications in LabWindows/CVI, launch the NI Example Finder.
  6. 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.