I'm trying to find a way of assigning values to a control slider based on an array acquire via interpolation.
The end game is to try and use the slider to change between values in the array and give the corresponding index value from another array with the same size.
I've attached some snips for clarification.
Solved! Go to Solution.
Hi Chango, you can set it up in the properties of the slider, or by property nodes. You'll want to use property nodes if your array can change. What you care about is the maximum and minimum of the scale (which you can get from Array Max & Min) as well as the data entry increment (which you can get from Array-Array. Then to make it "snap" to the allowed value you can set the response to increment outside of value to coerce (to nearest in this case).
Take your array of values, convert to strings, use those for text labels of the slider.
Thank you both for your replies.
I seem to be having trouble inputting the string format into the TextLabel property node.
I've attached a picture to try and clarify again.
Could it be that I've somehow got to change the output to an input? If so, how would I do that?
Thanks for your help, I really appreciate it. I'm relatively new to LabVIEW.