07-16-2009 01:31 PM
The Read Key (Path) VI from the Config File library does not seem to operate properly - at least as far as I can tell. If you have a config file in which the path is specified as starting from a server like this: "\\\\servername\\directory1\\directory2\\filename", and use the Read Key with a path constant as the default value (the Read Key (Path) will get used), the returned path is "\\\\servername\directory1\directory2\filename". This is not correct. The path should have only two backslashes at the beginning. The problem seems to be in the "Common Path to Specific Path" subVI.
Workaround: Read the key as a string, and then use the String to Path function. Using the above key, the return value from the Read Key (String) is, correctly, "\\servername\directory1\directory2\filename".
This behavior seems to occur with 8.6 as well. Don't know about 8.6.1, but I did not see anything in the bug fix list for 8.6.1 regarding this.
Note: I only tested this on Windows.
07-16-2009 01:46 PM
07-17-2009 01:59 PM
07-17-2009 02:11 PM