Description
Description-Separate-1A virtual channel is a collection of settings such as a name, a physical channel, input terminal connections, the type of measurement or generation, and can include scaling information.
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.
Description-Separate-2How to Use
How-Separate-1
-
Open the Measurement & Automation Explorer by going to Start » All Programs » National Instruments » Measurement & Automation
-
Open LabVIEW Start » All Programs» National Instruments » LabVIEW » LabVIEW.
-
Open the VI attached to this document, found in the Attachments section.
-
Select a Global Virtual Channel
-
Set the rate for the sample clock. Additionally, define the sample mode to be continuous.
-
Call the Start VI to start the acquisition.
-
Read the waveform data in a loop until the user hits the stop button or an error occurs.
Note: This example reads data from one or more channels and returns an array of data. Use the Index Array function to access an individual channel of data.
-
Call the Clear Task VI to clear the Task.
-
Use the popup dialog box to display an error if any.
How-Separate-2