Example Code

Reducing DAQ Output Precision Using LabVIEW with DAQmx

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI converts the output of the DAQ card and lets you choose the Digits of Precision.

 
Description

Assume the DAQ output is 5.23145 and the required precision is 5.231. Select the Digits of Precision to be three to make output of the ring control to 1000, which will get multiplied with the DAQ output and then get converted to I16 and then divided by the output of the ring control that is 1000.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download and open the attached VI.
  2. Specify the Digits of Precision in the front panel.
  3. Run the VI .

 

Additional Information or References
VI Snippet

004.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.