LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I change range properties for clustered sliders

I've seen many similar questions, but none with satisfactory solutions.

I have a cluster with 80 sliders for a dual monitor status display. I want
to programatically change properties of these sliders on an individual basis.
(i.e. 1st element slider has a range of 0 - 1000, 2nd element is 0-20...

If I access the properties node by using controls[] from the cluster property
node, but I can only access the frist group of properties (blink, value, position etc)
I do not see the data range or slider properties.

How can I access/change these without hardwiring to all 80 sliders?

thank you for any inputs!
0 Kudos
Message 1 of 5
(3,272 Views)
You need to type cast the slider references so that they are Slide(strict). I have attached a small vi as an example. I hope this will help.
0 Kudos
Message 2 of 5
(3,256 Views)
" … I can only access the first group of properties (blink, value, position etc). I do not see the data range or slider properties."

Use the "To More Specific Class" function (Application Control palette) to typecast the generic control refnums coming from Controls[] to Slider refnums.

Hope I'm not misunderstanding.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 3 of 5
(3,255 Views)
Exactly what I needed. Thank you both so much.

Is this kind of information easily gleaned from NI docs, or is it more of
a windows programming mindset?

thanks again....Craig
0 Kudos
Message 4 of 5
(3,238 Views)
Actually, it's a basic principle of object-oriented programming and has nothing to do with windows or LV. You can find a lot of documentation about this in this site and other places. Just search for "classes" or "object oriented".
Here's a link for a nice tutorial which deals with the specific topic which was on this thread.

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