How to Acquire Voltage and Current Data in the Same DAQmx Task?

Updated Oct 25, 2020

Environment

Hardware

  • NI-9207

Software

  • LabVIEW Full
  • LabVIEW Base

Other

  • Windows 10

 

I'm trying to acquire data with the NI 9207 Voltage/Current Input module. I can acquire voltage data just fine, but when I try to add on current measurements it says that The Specified Resource is Reserved. How can I acquire both voltage and current data on the same task?

You can create channels of different measurement types in the same task by calling the DAQmx Create Channel VI multiple times. To add current readings to your voltage readings, you can create two channels in series. The following screenshot shows the edit to the example 'Voltage - Continuous Input' (Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Input) to obtain current readings along with voltage readings:
 

You can then display the data normally with the output of DAQmx Read, as shown below: