LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of sliders with different properties possible?

Hello, I'd like to have an array of sliders with different properties. Smiley Surprised And since that's not possible simply by creating an array of sliders, are there any workarounds for creating what's in the attached VI?
 
The reason for having an array of sliders is so that the user can add multiple elements at run-time, which is something I can't do with clusters, or can I? What about a nice scrollbar to go along with it? I'm particularly interested in the property to change the scale of the sliders so that the user can adjust the scale for each channel on its own. Since different channels are scaled differently, the sliders look a little silly when the values are especially far off.
 
Thanks.
Message 1 of 5
(2,864 Views)
You can't create an array like that, but you can create cluster that looks exactly the same (you'll need to add an event structure to handle the scrolling and you can set the controls disabled value to 2 to make it act like just like an unused array element). I can write up a working example later if you want.

Matt W
Message 2 of 5
(2,855 Views)

Thanks Matt.

So you're saying show only, for example, 4 clusters at a time, and fake the scroll by scrolling the data when the user moves the scrollbar?



Message Edited by Sima on 11-05-2007 04:44 PM
0 Kudos
Message 3 of 5
(2,848 Views)
That's it.
0 Kudos
Message 4 of 5
(2,843 Views)


Sima wrote:

I'm particularly interested in the property to change the scale of the sliders so that the user can adjust the scale for each channel on its own. Since different channels are scaled differently, the sliders look a little silly when the values are especially far off.

Make the scale 0-100 and use a seperate control (e.g. an array of strings or numbers) to display the actual scale. Keep a ratio for each channel and use that ratio to translate 0-100 to the actual numbers the channel needs to have.

___________________
Try to take over the world!
0 Kudos
Message 5 of 5
(2,835 Views)