01-19-2019 04:48 AM
Hi everyone,
I'm totaly new to LabView and have a Problem with the ramp function.
My program for a motor controlling needs a single 16bit value in every loop, but the ramp function gives me a vector. How is it possible to get a single value out of the ramp function?
Best regards, Tom
Solved! Go to Solution.
01-19-2019 05:50 AM
Make your own ramp. Store the current value in a shift register and add whatever step rate you want to that value. Add in some logic for when you reach the end of the ramp to make sure you don't go too far and possibly to turn around.
01-19-2019 11:42 AM
That is not a vector. It is a 1-D array.
If you generate the ramp before the loop, you could wire the 1-D array into an auto-indexing tunnel and that would use the elements one by one each iteration of the loop. This feature usually works better with For Loops rather than While Loops because While Loop run an uncertain number of times and eventually you'd run past the end of the array if it ran long enough.