NI MAX Reading Correct Voltage, LabVIEW Does Not

Updated May 3, 2018

Reported In

Hardware

  • cDAQ-9135
  • NI-9206

Software

  • LabVIEW 2016 Professional
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Issue Details

I'm reading in a voltage in NI MAX using DAQmx, and see the expected value. When I read it into my LabVIEW code instead, I notice that the value is consistently too high or too low.

Solution

Open a shipping example designed for the type of measurement you are taking. Shipping examples are located in LabVIEW, under Help > Find Examples.

Run the shipping example and determine whether it is reading the expected values.

If the shipping example worked as expected, you know that LabVIEW is receiving the correct data from the hardware. Check your LabVIEW code to make sure that your DAQmx task does not have unexpected scaling applied to it.

Additional Information

When a DAQmx task created in LabVIEW has scaling applied to it, DAQmx will read the value in from the hardware and automatically multiply or divide it according to the scaling settings applied. This can make it look like your LabVIEW code is reading in the wrong values.

WAS THIS ARTICLE HELPFUL?

Not Helpful