06-09-2004 03:10 PM
06-09-2004 03:39 PM
10-03-2006 08:21 AM
How do you write to the Globals file using this method?
Scenario: I have implemented this method (also suggested in a recent post) to read and write control values to a Global file. The reading part functions well. The problem is when writing to the Global file.
Case 1: Writing with Global.vi open.
When writing to the Global.vi file while it is open, the written values appear as expected. The Global file is closed. When re-opening the Global.vi file, the recently written values are replaced by the original ones, as if they were not saved. Note that the Global file was not "saved" manually prior to closing.
Case 2: Writing with Global.vi closed.
When writing to the Global.vi file while it is closed, the recently written values do not appear after opening the file.
I suspect that the values may be written to the Global.vi file but are not saved. How do you save values to a Global file when using references to write the values?