LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variable problem

Hi
My application reads the name and the value of any shared variable in the front panel and it works good well when I run my VI.
But when I create the executable it display ony the value, and it can`t read the name...
Any suggestion?
 
Thanks
0 Kudos
Message 1 of 5
(2,706 Views)

I don't understand what you are trying to do.  What do you mean by "shared variable in the front panel"?  Shared variables are part of a library, they don't exist on a front panel.  Though you can bind front panel controls and indicators to shared variables.

Can you post a piece of code that shows what you are doing?

0 Kudos
Message 2 of 5
(2,704 Views)

Hi

I posted my block diagram...it reads the shared variables from a library  ... and if the value is true it write the name of the shared variable on the listbox..

If I run this VI it works well, but if I run the executable it don`t display the name of the variables.

 

0 Kudos
Message 3 of 5
(2,700 Views)
I have noticed that when I run the executable the Property Node "Shared Variable IO" that read the name gives the posted error.
But only in the executable file, why when I run The VI it doesn`t appear?
 
Thanks
 
0 Kudos
Message 4 of 5
(2,691 Views)

VI's will have a different path when they are run from and executable then run from a Development environment.  I wonder if there is the same effect on libraries?  I would recommend putting an indicator on the shared variable array to see how it shows up differently between the two environments.

It is also possible that the name of the shared variable gets stripped when compiled into an .exe.  You may want to look at the description property and see if you can store the name there as well and try that.

0 Kudos
Message 5 of 5
(2,674 Views)