Example Code

Ramp Two Parameters 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 is a quick example showing how to ramp two parameters using nested for loops, take a measurement, show a graph, and log the results to a text file.

 

2. Description

The ramp function is a unary real function, whose graph is shaped like a ramp. It can be expressed by numerous definitions, for example "0 for negative inputs, output equals input for non-negative inputs". The term "ramp" can also be used for other functions obtained by scaling and shifting, and the function in this article is the unit ramp function (slope 1, starting at 0).
This function has numerous applications in mathematics and engineering, and goes by various names, depending on the context.

 

3. Requirements

  • NI LabVIEW Base Development System 2012 or above.

 

4. Steps to Implement or Execute Code

  1. Download and open the example VI attached.
  2. Set the desired configuration for the ramps: Temperature Control and Variable Control.
  3. Write a measurement period (ms).
  4. Run the VI.
  5. Select or create a .csv file to store the values.
  6. Review the XY graph.
  7. If abort is needed, press the Stop button.

 

5. Additional Information or References

Ramp Two Parameters 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.