LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have problems when I save changes in a globla Variable.

I'm using this examples for use global variables from two differents PCs.The problem is that the changes made in the global variable are not saved, even when I´m working in local.
0 Kudos
Message 1 of 3
(2,556 Views)
Why should it be saved? A front panel control in a global VI is no different than a front panel control in a normal VI. If you change the value of a control and then exit the VI, the front panel control reverts to it's default value when loaded again. You would need to change the default value by using the method Make Current Values Default and then Save Instrument. These methods are not available in the run-time engine so if you intend to make an EXE, you'll need to do something different.
0 Kudos
Message 2 of 3
(2,556 Views)
I don't see a problem when running on my local machine (I do not have two linked machines available). The global retains the last data entered as long as it is running. When LabVIEW restarts the global will contain the default value for each data type until you place something else into it, either manually or by usintg the Set Value.vi (look at Help for Globals). If the data needs to be retained between runs, then write the data in the global to a file before shutting down and read the file and write the data to the global upon starting up.

Lynn
0 Kudos
Message 3 of 3
(2,556 Views)