LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing FP controls within a cluster.

Solved!
Go to solution

I have a cluster of slide controls, and I want to change several properties of the slides in the same way relative to each other. I know how to change the properties using a reference to a single slide control, but I'm not sure how to get there from a reference to their containing cluster. The attached picture shows some of the properties I can edit using a direct reference to one of the slide controls, and the options available when I try to work down from a reference to their containing cluster.

 

 

Please advise if what i am trying to do is actually possible. Thank you.

 

James

Message Edited by James Mamakos on 06-17-2009 11:29 AM


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 1 of 11
(2,927 Views)
Solution
Accepted by topic author J.Mamakos

Use the "To more spesific class" function on the "ctl" reference inside your for loop. You can find it under application control.

 

To the "Taget class" input you wire your slider reference (or a slider reference constant) 

Message 2 of 11
(2,919 Views)
How would i create a slider reference constant, or would wiring a reference to any one of the sliders act in the same way as a constant?


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 3 of 11
(2,909 Views)

You could use any of your slider references, you only need the type, but I think it looks "cleaner" with a constant

 

To make one: Rightclick your current reference -> create constant

 

Message Edited by Jan_HeG on 06-17-2009 06:03 AM
0 Kudos
Message 4 of 11
(2,906 Views)

I tried that but for some reason i cannot. Any ideas?

 

Message Edited by James Mamakos on 06-17-2009 12:07 PM


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 5 of 11
(2,901 Views)
here is the code I used I hope it helps:
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 6 of 11
(2,889 Views)

Pass. Smiley Sad

 

I have tried different slide types with several slides and different datatypes and I am always allowed to make a constant. 

 

What kind of slide is it? 

0 Kudos
Message 7 of 11
(2,882 Views)

They are Horizontal Progress Bars with two sliders.

 

I've found a way to create a slide reference constant, but it's not 'strict'. Does this matter?

 

Message Edited by James Mamakos on 06-17-2009 12:26 PM


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 8 of 11
(2,879 Views)
mine defaults to strict, but I have also used the constant you have and it works the same
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 9 of 11
(2,867 Views)

It may be because i run LabVIEW 6.1 - i'm not sure.

 

Anyway, thank you for your help both of you. 🙂



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 10 of 11
(2,863 Views)