LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

One single 16bit Value out of a ramp

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(1,979 Views)
Solution
Accepted by topic author TomThimson

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(1,967 Views)

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.

0 Kudos
Message 3 of 3
(1,947 Views)