LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems with programmatically deploying variables

I have a HMI application with each screen as a separate VI.  So I am loading the VI's into a sub-panel from the main VI.  From the main menu I am setting a global variable to a number that corresponds to each separate VI screen when a button is pressed.  The menu VI then closes itself and the main VI takes over and loads the VI linked to the global variable.  This works great on my dev system.  Even if I turn "autodeploy off" for all the global variable libraries it work on the dev system.  But when I put it on a runtime system the program will just sit at the main menu and the variable apparently never changes when I click on a button.
0 Kudos
Message 1 of 2
(2,639 Views)
zorro,

I think I may be misunderstanding your application. When you say that you have global variables that you are deploying in libraries, I assume that you are referring to shared variables? Also, you mentioned that you are loading the VIs for separate screens into sub-panels. However, it sounds as if you are actually calling these sub VIs and showing the front panel when this call is made. Are you using the LabVIEW sub-panel control in your main VI? If so, have you considered passing a reference to this sub-panel to your menu VI which can then load the appropriate sub VI without the global variable?

If I can assume that you are controlling the launch of your sub VIs with shared variables, then you would need to make sure you auto deploy your variables in your run-time environment. Does the program also behave incorrectly when the variable library is auto deployed?

Also, is there a reason why the calling (or loading of these VIs into the sub panel) is controlled by shared variables? Does this operation work when you launch the sub VI without using shared variables?

I apologize for the confusion. I'd like to help however I can, but I do not have a clear picture of the way your application works.
0 Kudos
Message 2 of 2
(2,617 Views)