LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

node property global variable

Hi,

How could i access to the property nodes of a global variable ?
Thx,
Samer,
0 Kudos
Message 1 of 17
(4,362 Views)
You would need to open a reference to the VI and then access the front panel and then the controls on the front panel. For example, this will return the labels of all the controls on a global variable:




Message Edited by smercurio_fc on 07-15-2008 11:46 AM
Message 2 of 17
(4,355 Views)
Hi samer,

even with smercurios excellent answer:
Why do you need to access property nodes of global variables??? What do you want to achieve?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 17
(4,329 Views)

Gerd pondered

"

even with smercurios excellent answer:
Why do you need to access property nodes of global variables??? What do you want to achieve?
"

I am curious as well. We may be able to offer alternatives.

Ben




Message Edited by Ben on 07-15-2008 03:03 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 17
(4,316 Views)

@GerdW wrote:

Why do you need to access property nodes of global variables??? What do you want to achieve?

Sometimes I just throw my hands in the air and don't bother asking this and just decide to answer the question as stated, since I know the poster will likely follow up with the real question, or additional information that completely changes the premise of the question.

I suspected it had something to with this.
0 Kudos
Message 5 of 17
(4,306 Views)
Hi GerdW & ben...Thank you for your concern...Smiley Wink

smercurio_fc is right...Smiley Happy i was asking the question in relation with this subject: http://forums.ni.com/ni/board/message?board.id=170&message.id=339923#M339923

In the subVIs and the VI i need to access to the property nodes of the global variable...

What do you think ?




Samer,
0 Kudos
Message 6 of 17
(4,289 Views)
Hi samer,

you still don't say why you need to access properties of global variables...
Globals should only be used as data storage/provider. You don't show the fornt panel of a global vi to the user, so properties are irrelevant...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 17
(4,287 Views)


@GerdW wrote:
You don't show the fornt panel of a global vi to the user, so properties are irrelevant...


Uhm why not, I have done it  in the past as an advanced debug function.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 17
(4,266 Views)
Hi Ton,

that's an interesting point! (Always trying to improve my LV knowledgeSmiley Wink)

Did you use properties to show different states of the running vi?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 17
(4,256 Views)
Hi,
sorry for answering late...
 
The reason of needing the global variable node property is that i have a listbox variable in my global variable vi ...and I need to access to the properties of the listbox in my vi and subvi.
 
in my subvi I need to read to the contents of  this listbox...and in my vi i need to wrtite into the listbox...so i need the properties to do so....
Is smercurio solution is what i need ?
if not could you help me ?
Samer,
0 Kudos
Message 10 of 17
(4,170 Views)