10-29-2009 02:11 PM
10-29-2009 02:23 PM - edited 10-29-2009 02:27 PM
Yes use a property node to get ref to the FP (fron panel) then use that ref for another prop node to get an array of refs to all controls on the FP. Each control has a name property that use can use to decide which is which.
Use "to more specific" if you need to get at the object specific properties.
Ben
PS This only counts as a race condition if your answer over-writes mine.
10-29-2009 02:24 PM
10-29-2009 02:24 PM - edited 10-29-2009 02:25 PM
Create a property node for the VI reference and select 'Front Panel', right-click and create a property node for the Panel Class and select 'Controls[]'
Edit: I believe this counts as a race condition.
10-29-2009 02:27 PM
"Create a property node for the VI reference and select 'Front Panel', right-click and create a property node for the Panel Class and select 'Controls[]' "
What is the best way to access the specific control that I want by name?
10-29-2009 02:34 PM
Steve Block wrote:"Create a property node for the VI reference and select 'Front Panel', right-click and create a property node for the Panel Class and select 'Controls[]' "
What is the best way to access the specific control that I want by name?
THis Nugget has a lot of hints for working with control refs.
here is a preview
Use the label to choose which ref you need.
Ben
10-29-2009 02:35 PM - edited 10-29-2009 02:36 PM
As Ben noted, you can pull the name from the ctrl reference. With the array of names, you can search for the one you are interested in to find its index in the Controls[] array.
Edit: I am going to lunch now, Ben has this covered, and then some....
10-29-2009 02:43 PM
10-29-2009 02:46 PM
See my Nugget to learn how to test if a ref is of a specific type but once you find a tab ref use it to feed another controls prop node to get the controls on the tab. Repeat for nested tabs.
Ben
11-02-2009 05:43 PM