LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

global variable

Hello
Is it possible to get the label of global variabels. I have to take them because I'm using subpanels. I need to know the main label of a cluster and also the labels of the sub values. With local variabels it's not a problem to handle that. How is that working with globals?
 
Best regards
 
 Reto   
0 Kudos
Message 1 of 3
(2,685 Views)
Yes it is possible. Open a reference to the global vi and get an array of all the controls' references from the vi property Panel.
Once you have the references, you can proceed as usual.
I attach an example (7.1), hoping that this is what you need.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Download All
0 Kudos
Message 2 of 3
(2,664 Views)

Hi,

 

You have to go, one step deeper when you want to read the Labels from an Cluster. I attach an example (LV 8.0), with this kind of programming you can read the Labels from the Cluster in an global variable.

Remember to set the path to the Global1.vi.

 

Best regards and a nice weekend

Alex R

NI Switzerland

Message 3 of 3
(2,648 Views)