Example Code

Monitor values up to 1 and then keep a constant signal

Code and Documents

Attachment

Download All

Overview
This example VI is the base for a user that wants take voltage inputs up to a certain voltage value. This specific program uses a case structure to plot randomly generated values up to one and then only plot a value of one if the randomly created value is greater than 1.

 
Description

The code provdided adds two randomly generated numbers and then compares them to one. If the generated value is greater than one, then a constant of one will be outputed.

 
Requirements

  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Open the VI "Filter 2012 NIVerified.vi"
  2. Run the program

Additional Information or References

VI Block Diagram

 

1.png

 

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

 

Applications Engineer
National Instruments

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