Physical Channels, Virtual Channels, and Tasks in NI-DAQmx Primary Software: Driver Software>>NI-DAQmxPrimary Software Version: 7.3 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: What are physical channels, virtual channels, and tasks in NI-DAQmx? Solution: This information is also in the NI-DAQmx Help, the DAQ Assistant Help, and the DAQ Quick Start Guide. Physical Channels and Virtual ChannelsA physical channel is a terminal or pin at which you can measure or generate an analog or digital signal. Every physical channel on a device has a unique name that follows the NI-DAQmx physical channel naming convention, such as In NI-DAQmx, virtual channels are integral to every measurement. You can create virtual channels with the DAQmx Create Channel VI or with the DAQ Assistant. You can also use the DAQ Assistant, accessible from Measurement & Automation Explorer or NI application software, to configure channels and measurement tasks. To name the virtual channel, use the following guidelines:
Local Virtual Channels and Global Virtual Channels In NI-DAQmx, you can configure virtual channels as part of a task or separate from a task. Virtual channels created inside a task are local virtual channels. Virtual channels defined outside a task are global virtual channels. You can create global virtual channels in MAX or in your application software and save them in MAX. To create a global virtual channel, use the DAQ Assistant and create a DAQmx Channel. Global virtual channels are listed in MAX under the DAQmx Channel tree. You can use global virtual channels in any application or add them to a number of different tasks. If you modify a global virtual channel, the change affects all tasks in which you reference that global virtual channel. Local virtual channels are created inside a task. If you create the same local virtual channel in three separate tasks, the local virtual channels are considered to be three distinct virtual channels. If one local virtual channel is modified, the other two local virtual channels remain unchanged. Tasks A task, an important concept for NI-DAQmx, is a collection of one or more virtual channels with timing, triggering, and other properties. Conceptually, a task represents a measurement or generation you want to perform. You can set up and save all of the configuration information in a task and use the task in an application. With NI-DAQmx, you can configure tasks with the DAQ Assistant. You must have version 7.0 or later of an NI application software package to create tasks and channels with the DAQ Assistant. Application I want to measure temperature in the range 50°C to 200°C using a J-type thermocouple that is wired to channel 0 on an E Series device configured as Device 1. Should I use a physical channel or a virtual channel? I want to expand my application from above. I want to measure temperature at a rate of 1000 samples/sec beginning only after the temperature reaches 75°C. What would the differences be between using a virtual channel or a task? Related Links: KnowledgeBase 2X5ER1X8: What's New in MAX 3.0? Attachments:
Report Date: 05/15/2003 Last Updated: 03/30/2005 Document ID: 2XE9HRIP |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
