Current and Voltage in a Single Analog Task

Updated May 30, 2018

Reported In

Software

  • LabVIEW
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Issue Details

I am trying to read or write both voltage and current on a single NI analog card. Is this possible?

Can I do current and voltage acquisition in a single task?

Solution

Current and voltage are both variations of the "Analog" task type whether it be analog input or analog output. As such, they are able to share a timing source and thus can be used together in a single task. 

In LabVIEW, this can be accomplished using channel expansion using the DAQmx Create Virtual Channel VI as in the following example:

Create Multiple Analog Measurement Types Task in MAX explains how to create these types of tasks in NI MAX.

Additional Information

When using multiple channels in a single task, data in or out will be in the form of an array with a new column for each channel.

Different task types can not be included in a single task. For example analog input and digital input cannot be included in a single task because they cannot share the same timing source. 

WAS THIS ARTICLE HELPFUL?

Not Helpful