Example Code

Convert Celsius to Fahrenheit using an Expression Node 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

Description

1. Overview

This VI shows a simple conversion from a temperature (DBL) in degrees Celsius to degrees Fahrenheit.

 

2. Description

The use of expression nodes is handy when doing conversions and simple operations. This example makes use of this structure to convert a Celsius temperature (DBL) to its value in Fahrenheit (DBL).

 

3. Requirements

NI LabVIEW Base Development System 2012 (or compatible).

 

4. Steps to Implement or Execute Code

  1. Download and run the VI
  2. If you want to convert to/from other units, replace the expression to the one that fits your conversion.

 

5. Additional Information or References

 

Convert Celsius to Fahrenheit  Screenshot.PNG

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

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