LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing GUI (nicely) in a separate VI

Hello,

i am absolutely new to LabView.

I want to access my GUI in a separate VI - separated to get a better isolation between main-loop and GUI.
I have more than 100 elements on the GUI - to have a better control they are grouped inside some Clusters - giving you also some kind of hierarchy. (a switch and 3 Leds are grouped to one "row" - 4 "rows" are grouped to a "chapter" and my GUI contains 4 "chapters")

If you want to alter some property of those elements you simply have to create a property node then selecting "Link To" in the context menu and then you can browse (nicely!) through the hierarchy of the controls.

But if i am passing a reference of such a Cluster to the VI controlling the main loop I have to fiddle with name-strings of these controls (accessing with property node "Control Value").

Is there any programming-technique bringing my nice "LinkTo" Option into the other VI's ?
😞
0 Kudos
Message 1 of 3
(2,556 Views)
Here's how I do it (zipped LV7.1 llb attached). The green openg tools can be found at commander.openg.org. Or you can look inside them to see what they do.
0 Kudos
Message 2 of 3
(2,527 Views)
Cool...
Show some good concepts...

But what if you write "Sequennce" instead of "Sequence" (Control Name) ?
You have to handle with their names although they are know at editing (they are not created at runtime). You can avoid it if you place you GUI handler inside your main loop vi.
(Then you can access then by "magic property" which hides the reference input if you select one item of "LinkTo" - and this is the problem. A better reaction from the Labview IDE would be if I connect some sort of "front panel reference" and THEN the magic "Linkto" appears in contextmenu on it. Then i could export this wire to other vi's !)

I mean this is some data i can not export to other vi's.
0 Kudos
Message 3 of 3
(2,497 Views)