Creating Tasks

NI-DAQmx Name Control

Creating Tasks

You can use a DAQmx task name control to launch the DAQ Assistant. Complete the following steps to launch the DAQ Assistant and create a new task.

  1. Place a DAQmx task name control on the front panel.
  2. Right-click the control and select Create DAQmx Task»In MAX or Create DAQmx Task»In Project from the shortcut menu. If the VI is not in a project, the In Project option is grayed out.
  3. Follow the onscreen instructions to configure the measurement, scaling, timing, and triggering for the task.
  4. When you save the task and exit the DAQ Assistant, LabVIEW sets the DAQmx task name control to the name of the task.

Refer to Taking a Measurement with NI-DAQmx in LabVIEW for a walkthrough of the DAQ Assistant.

After you create a task, you can use the DAQmx task name control to generate code for that task.

You also can use the DAQ Assistant Express VI or MAX to launch the DAQ Assistant and create a new task.