11-13-2013 05:32 AM
Hi
I modified the "Read Configuration (INI)" example to write a new config file if the wanted file does not exsist.
But it is not working. I can't figure where I did an error ?
It will create an empty file. But nothing else. No errors ether!
Regards
msskov
I'm using LW2013
Solved! Go to Solution.
11-13-2013 06:27 AM
Hi msskov,
Can you post your file in previous version LabVIEW 2010 or 2012. So I can open the file and solve your query.
11-13-2013 06:33 AM
Sure....
Here it comes
11-13-2013 06:56 AM
When my ini files are not working the very first thing I check is the spelling of the cluster label. THey must match in the read and write portions of your code.
11-13-2013 06:59 AM
Working as expected.
The example you use is READING keys. If the key does not exist, the VI returns the default value (from the help of Read Key.vi).
So it does not create the section/key, it does not update the file.
If you want to create the sections/keys, you have to check if the section/key is already available ("found?" parameter from read key). If so, everything is fine.
If not, you have to call a write key adding that section/key to the INI.
Norbert
11-13-2013 07:23 AM
Hi Norbert_B
OK. I just misunderstud the descripten then.