To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Coding that exemplifies how to settle the value of a gauge until it reaches the neutral value.
Description
This simple VI has a gauge output that starts off at 0, and will try to zero itself by incrementing if the value is negative and decrements if its positive. The program will be making the changes with a precision of 0.1, which makes it much more precise. In order to avoid having overshoot, we check if the values are within a certain range and then coerce it to cero. This will be giving a stable behavior.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Select the Run button.
2. Move the needle to any side, and watch it constantly stabilize.
3. Stop the application with the Stop button.
Additional Information or References
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.