Using Your Task or Global Virtual Channel in Your Application Software
You can use tasks or global virtual channels saved in MAX when programming your applications.
If you are using LabVIEW 7.x or later, LabWindows/CVI 7.x or later, or Measurement Studio 7.x or later, you can generate code from your task or global virtual channel for use in your application.
Refer to LabVIEW Help, LabWindows/CVI Help, Measurement Studio Help, or NI-DAQmx Help for more information about programming with your task or global virtual channel. Refer to LabVIEW SignalExpress Help for information about using the DAQ Assistant in LabVIEW SignalExpress.
Note You can access global virtual channels in LabWindows/CVI and Measurement Studio only if you are adding them to a task. |
LabVIEW
Complete the following steps to access your task or global virtual channel:
- Place either the DAQmx Task Name control or the DAQmx Global Channel control on the front panel.
- Click the pull-down menu and select the task or global virtual channel(s) you want to use in your application. You can select multiple global virtual channels, but not multiple tasks. You also can select Browse to find tasks and global virtual channels.
LabVIEW SignalExpress
To access a task you created in MAX, select Tools»Import Task from MAX in LabVIEW SignalExpress 2.5 and later.
Note Any global virtual channels in the task you import become local virtual channels in LabVIEW SignalExpress. |
You also can copy global virtual channels into your DAQ steps in LabVIEW SignalExpress when you are adding channels to the step.
- Select the Virtual tab. The Virtual tab appears only if you have already created a global virtual channel of the same measurement type as your step.
- Select the global virtual channel you want to copy to the step. When you copy the global virtual channel to your step, it becomes a local virtual channel.
LabWindows/CVI
Complete the following steps to access your task:
- Open the DAQmxLoadTask function panel.
- Press <Enter> in the Task Name control. A list of task names you can use appears in the context menu.
- Select the task you want to use from the context menu.
Measurement Studio
Launch one of the following wizards from the Project»Add New Item menu:
- To use a task stored in MAX to create a new project-based task, use the DAQmx Task Add New Item wizard.
- To reference a task stored in MAX when creating a Visual C++ DAQmxUserCode, use the DAQmxUserCode Add New Item wizard.
- To reference a task stored in MAX when creating a .NET DAQmxUserControl, use the DAQmxUserControl Add New Item wizard.
Each of these wizards opens a dialog box you can use to select a task saved in MAX.