07-20-2005 09:58 AM
07-20-2005 10:26 AM - edited 07-20-2005 10:26 AM
Message Edited by pincpanter on 07-20-2005 05:27 PM
07-20-2005 11:51 AM
The globals will be in memory if they are in your calling programs, as long as LabVIEW isn't shutdown. The first time the program is run, after loading from disk, the global's values will be whatever they were set to as a default when they were last saved to disk. When you have run the program and stopped it, they will then retain the values they acquired during the run, as long as you don't close out LabVIEW, but they won't retain these values for the next "new" run (after closing LabVIEW) unless you specifically go to the global's vi, do a "set current values as default", then save the changed to disk. Another way is to read all their values at the end of the program's run (as it is being shutdown) and write these values to a file, then have those values read in at the next startup and written to the globals in some "global_init.vi" as the previous writer said.
P.M.

07-20-2005 11:53 AM
07-20-2005 01:19 PM
I am using the global variables as calibration constants that are only read in the program. The values of the global variables are set by manually setting the value and then selecting Data Options, Use current value as Default option. The problem is that the first time I run the program the global variables are 0. If I stop the program and then rerun the program the variables are at the correct values. I checked this by setting a break point with probes on a few of the variables.
Any ideas?
Mike
07-20-2005 01:42 PM
07-20-2005 03:51 PM
07-21-2005 01:59 AM