Admin Production ni-theme
Current Publication

Using MAX-Based Tasks

LabWindows/CVI

Using MAX-Based Tasks

To use your newly created task in a program, call DAQmxLoadTask as shown in the following example:

#include "nidaqmx.h"

TaskHandle myTask = 0;
DAQmxLoadTask ("MyMAXBasedTaskName", &myTask);
/* Use your DAQmx task */
DAQmxClearTask (myTask);

Note that the function panel for DAQmxLoadTask can display a list of all the MAX-based DAQmx tasks on your computer. Press <Enter> on the Task Name control to view the list of tasks or to create a new task.

The Source window provides context menu items for working with MAX-based DAQmx tasks. You can access these context menu items by right-clicking a call to DAQmxLoadTask in a Source window. The following items apply to DAQmx tasks:

Generate DAQ Example Code
Edit DAQ Task
Copy DAQ Task to Project
Show DAQ Configuration Code