Admin Production ni-theme
Current Publication

Generating DAQ Example Code

LabWindows/CVI

Generate DAQ Example Code

This option generates code that shows how to run the selected task in a program.

Selecting this menu item opens the Generate DAQ Example Code dialog box. You must specify the Run Task function name and the target source file. When you click OK, LabWindows/CVI generates example code that shows how to run the selected task in a program. The generated code includes source and header files that define the Run Task function. LabWindows/CVI automatically adds these files to the project. The current source file is modified to call the run task function.

The generated code has no link to the original task. Any modifications you make to the original task will not be automatically reflected in the generated code.

This menu item is enabled only when you place the cursor on a call to DAQmxLoadTask or the name of the task creation function of a project-based task.