09-15-2008 02:43 PM
One way I've tried is to put the controls inside a cluster on the front panel. This works, but the problem is...on my front panel I want to place boolean's near these sliders to perform some other functions. When I place a cluster of controls over another cluster of controls, I have some issues with "bring to front". Take a look at the "Control Try 3.vi" attached...
Another way I've tried is to modify each control reference individually. This works, but will make the programming very ugly for future maintenance. Take a look at the "Control Try 2.vi" attached...
Then I tried to bundle all of the control references, and follow the same logic as the "Control Try 3.vi" logic. This changes the reference properties within the cluster, but doesn't change the actual control properties. Refer to "Control Try.vi". Is there a way to break this down farther, so that I can change the actual control properties? I've tried to go to more specific classes, but this doesn't work. I would really like to use this version if at all possible. Can someone give me some advice?
09-15-2008 02:47 PM
FYI...
In each vi, I'm trying to change the visibility and caption of each control when the second column of the array on the front panel is modified.
09-16-2008 10:33 AM
Hi JBSLab,
I think I am a little confused as to what you are after. What is wrong with your Control Try 3.vi? Seems like the way to do things. Your problem with Control Try.vi makes sense. You are modifying the Caption of the Reference Control. What you would need to do is use the actual reference. This would mean reading direct values from the cluster. I hope this helps, but again, I am not exactly sure what you are getting at.
Cheers,
09-16-2008 11:05 AM
09-16-2008 11:33 AM
Hi Brian and nathand -
I can understand the confusion. Very hard to explain, but I was having bring to front issues with the clusters before, placing overtop of one another. In other words, I wasn't able to control one of the clusters when the vi was running. I don't seem to have the issue now, so I'm going to stick with the "Control Try 3" approach like nathand suggested. Seems like the bring to front issue must have went away after I installed LabView 8.5.
I still am curious though, on how to read the direct values from the cluster, like Brian suggested. Brian, if you have time, could you show me an example? I think that this would come in handy in the future.
09-17-2008 05:31 PM
Glad you got something working the way you want.
Attached is what I meant about reading direct values. If you have a cluster of references, simply unbundle the cluster, then feed those references to the property node. I made a quick edit to your VI just to show what I mean.
09-18-2008 07:16 AM
Hi Brian -
Can I get you to save this as 8.5?
Thanks
09-18-2008 07:36 AM
Hi JBS,
My Nugget entitled
"A Case Study of Exploiting Control References to Reduce Development Time"
may be helpful in getting an understanding of how to work with cluster using control references. It discusses all of the most common ways of manipulating clusters, as well as some of the most obscure.
I hope that helps,
Ben
09-19-2008 09:30 AM