Tools»Create/Edit DAQmx Tasks
This command opens the Create/Edit DAQ Tasks dialog box. Use this dialog box to start creating a new DAQmx task or to launch the NI DAQ Assistant to edit an existing task.
Creating a DAQmx Task
For new tasks, you must select whether to store the task in the project or in NI Measurement and Automation Explorer (MAX).
Tasks stored in MAX are global to the machine on which they are created and can be used by other programs on the same machine. Tasks stored in the project are local to that project. Project-based tasks can be more convenient if you need to share a task definition among multiple developers or store the task definition in a source code control system.
When you create a new task, you must specify the measurement type for the task and the channels to add to the task. Once you select these options, the DAQ Assistant appears. The DAQ Assistant contains help that describes each step of creating and editing your task. To view the help, click Show Help.
Project-Based Tasks
If you select a project-based task, the DAQ Assistant generates source code to create the specified task programmatically. In addition to defining your task in the DAQ Assistant, you must specify a task name, a task creation function name, and a target directory.
When you exit the DAQ Assistant, LabWindows/CVI generates source (.c), header (.h), and binary (.mxb) files and adds them to the project. The generated source and header files define the task creation function. This function contains the code necessary to create and configure the specified task. The generated binary (.mxb) file contains a binary description of the task that is used when you edit the task in the DAQ Assistant.
Once you create a project-based task, you can use it in your program.
MAX-Based Tasks
If you store the task in MAX, you can edit it from LabWindows/CVI or you can edit it directly in MAX. You can access the task in MAX by expanding My System»Data Neighborhood»NI-DAQmx Tasks.
You also can create a MAX-based task by selecting New Task from the Task Name control in the DAQmx Load Task function panel.
![]() |
Note You must use MAX to create global channels. |
Once you create a MAX-based task, you can use it in your program.
Editing a Task
To edit an existing task, enable the Edit Existing Task option and choose a MAX-based task or project-based task from the list in this dialog box. Selecting this option opens the DAQ Assistant to edit the task.
You also can edit existing tasks through the Edit DAQ Task context menu item in a source window. You can edit project-based tasks by right-clicking the binary (.mxb) file in the Project Tree and selecting Open or Edit.