Example Code

Create Custom Linear Scale for Each AI Channel in LabVIEW Using 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.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This VI shows how to create multiple AI channels with a custom linear using a for loop in LabVIEW. 

 

Description

Thisi document is used to create multiple AI channels with a custom linear using a for loop in LabVIEW.  You will have to input the physical cahnnel for each channel into the channel array, along with the scaling coefficients.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

  1. Configure the parameter for the right channel and device
  2. Connect your hardware appropriately
  3. Run the VI

 

Additional Information or References

custom scale.png

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

 

Adam
Academic Product Manager
National Intruments

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