09-08-2008 07:05 AM
09-08-2008 07:43 AM
Hi Martin,
you can use a property node to read all controls of the selected vi. If you have a list of all, you can check if it is a control or an indicator.
Hope it helps.
Mike
09-08-2008 07:47 AM
Using supported functions it is possible to loacte all of the controls on the FP of a VI by fisr opening the VI and get a reference to the Panel and then use that porperty to get at the ""Control[]" property. This will give you an array of ref's can be used to get the name and get/set their values.
The connector Pane is something that requires scripting to access and is not supported. I have never had to use this info in a delivered app.
I hope that helps,
Ben
09-08-2008 08:11 AM - edited 09-08-2008 08:20 AM
There is a private method (unlocked via scripting) that does this. The method is called 'Export Interface'.
Good luck on your journey. See here for an example.
Ton
09-08-2008 08:40 AM
09-08-2008 08:45 AM
Hi Martin,
use a property node instead of an invoke node. Use the property front panel. You will get the reference to the front panel. Use another property node and connect the front panel refnum to it. Select control elements. Run through a for loop and use a property node with the selection "class id" and "label.text".
Mike
09-08-2008 08:58 AM
09-08-2008 09:28 AM
Hi Martin,
see the attached example please.
Mike
09-08-2008 09:44 AM
09-08-2008 09:49 AM
Hi Martin,
I wrote this Nugget on using control references to help out people that are just getting started using them.
You may want to review that Nugget for some inspiration.
Just rtrying to help,
Ben