Example Code

Humidifier Build Up-Turns on until upper limit is reached 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 VI generates a random value for the humidity within a given range.  The humidifier is then programmed to turn on at a Lower Limit.  The humidifer will then stay on until the humidity reaches a value greater than the upper limit.  This allows the humidity to vary randomly in the range between the upper and lower limit.

 
Description
Use the Humidity Range input to specify the range that the randomly generated humidity will be within.  Use the Upper and Lower Limits to specify when the Humidifer turns on.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Specify the Upper and Lower limit. The Lower Limit is the humidity at which the
  2. humidifier will turn on. The humidifier will remain on until it reaches the Upper Limit.
  3. Specify the Humidity Range. The humidity range changes the range of possible
  4. values which the randomly generated Humidity value can be within.
  5. Run and watch the Humidifier On LED turn on when the humidity dips below the
  6. Lower Limit and stays on until the Upper Limit is reached.

 

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.