08-05-2013 06:46 PM
I'm looking to input my degrees as a function of time that ranges from 0 to some variable degree maximum over a variable amount of time, and then ramps back down at the same rate. Any suggestions? I've tinkered with a timed loop but I don't know exactly how to manipulate it to give me exactly what I want so any help is greatly appreciated.
I've attached a screenshot of my block diagram and the input I'm looking to have values read into.
08-06-2013
10:02 PM
- last edited on
01-21-2025
11:35 AM
by
Content Cleaner
The Ramp Pattern VI will give you a ramped array based on the number of samples, the starting value, and the ending value. Then, the array elements can be passed individually to a function in a For Loop via an auto-indexing tunnel. Finally, you can control the execution time by including the Wait(ms) VI in the For Loop.
The following resources should help you if you have any questions about the aforementioned functions:
“Ramp Pattern VI”
“Passing Elements in an Array through a Loop”
“Wait (ms) Function”
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/wait-ms.html