To download NI software, including the products shown below, visit ni.com/downloads.
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
4. Steps to Implement or Execute Code
5. Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.