Example Code

Programmatically Seting the Range of an Indicator Using LabVIEW

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 example programmatically changes the maximum and minimum values of a meter indicator to those of an array. It's possible to swap out the meter, its corresponding refnum, and property node with several other indicators and achieve the same result.


Description

The meter's range will be from the smallest value in the array to the largest value in the array

 
Requirements
  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Download the VI.
  2. Open the VI.
  3. Input numbers into the array
  4. Run the VI
  5. The meter's range will change accordingly

Additional Information or References

VI Block Diagram
SetRange.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.