LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why my global variable don't work after building into application

in my LabVIEW software, I use a global variable, but after I built it into a exe file, it seems doesn't work, but the other of this software is working well.
I don't know if something must be noticed while buliding the exe file. any info. will be appreciated. Thankyou
0 Kudos
Message 1 of 2
(2,781 Views)
Hi,
Actually i think that the global is working, not sure but i think so. I'm not sure how you'r testing the global, but if you are building an exe file run it and open the global used in the VI application you will not see the correct values because it's not the same global as the exe file is using. What's happen then you build an application is that all subvi's and globals are included in the exe file so you can't open the global by clicking on it.
One way to see the values of the global is to build an gui with an while loop reading the global an displaying the values on the front panel.
Then execute the gui from your main application throuth vi-server and show the front panel, don't wait until done.
After this is done add your gui as a "Add Dynamic VI..." und
er "Source Files" in the application builder.

Hope this helps

/Thomas
0 Kudos
Message 2 of 2
(2,781 Views)