LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control global variables

Is it possible to control global variables vi's with VI references?
0 Kudos
Message 1 of 3
(2,496 Views)
Sure, you simply have to open a reference to the global variable in the normal way and get the reference to the control inside the VI. I am not sure what you are trying to do with the VI however, it seems like it would be easier to write/read the value through the global itself, and as far as other features, like visibily of the label or colors of parts, I am not sure that they are all supported, and it doesn't seem to make much sense as this isn't a UI element anyway.
Message 2 of 3
(2,496 Views)
jpeters wrote in message news:<5065000000050000004E7E0100-1079395200000@exchange.ni.com>...
> Sure, you simply have to open a reference to the global variable in
> the normal way and get the reference to the control inside the VI. I
> am not sure what you are trying to do with the VI however, it seems
> like it would be easier to write/read the value through the global
> itself, and as far as other features, like visibily of the label or
> colors of parts, I am not sure that they are all supported, and it
> doesn't seem to make much sense as this isn't a UI element anyway.

Ya..your right..

For a while I was trying to think of the global variable vi's "name"
as a variable I would iterate in a for loop for instance...


I can see now that
dosent make any sense...

I'm a long time HPVEE user..there it would make sence...

I'm fairly new to LV..

Thank You for replying to me....
0 Kudos
Message 3 of 3
(2,496 Views)