03-29-2011 11:16 AM
I use the openg config vi's and realized different behaviour between LV 8.6.1 and LV 2010. Digging into this I found that the 'Add Quotes.vi' adds quotes to all strings. The help says 'Adds quote marks (") around a string that contains spaces.'. After disabling the 'Add Quotes.vi' the openg config vi's work like expected. Can someone confirm this ?.
03-29-2011 12:06 PM
The openg libraries are not part of LabVIEW. For issues or bugs you should use the openg.org site
Package bugs:
http://forums.openg.org/index.php?showforum=12
03-30-2011 05:11 AM - edited 03-30-2011 05:12 AM
The Add Quotes.vi (NI\LabVIEW 2010\vi.lib\Utility\config.llb\Add Quotes.vi) is not part of the openg library. The problem only occured (for me) during I used the openg configuration vi enhancements, which itself uses the NI configuration vis. I used this frequently under 8.6 without the mentioned sideeffects after converting to LV 2010. It seems that the former (8.6) write key(string).vi did not put additional quotes to the string. But in 2010 it does. I modified the Add Quotes.vi like it was probably originally intended.
06-11-2013 07:03 AM
I found this is still malfunction in LV2012 SP1. Can somebody confirm ?
06-12-2013 08:53 AM
This change does exist in LabVIEW 2012 SP1, but I would hesitate to call it a bug. The VI is not on the palettes, so there is no guarantee it will maintain its interface or functionality. It appears this one changed its functionality when the configuration file VIs were refactored several years ago. I suspect the switch functionality was moved up a level in the hierarchy and the VI simplified to account for this. The new VI also has error connectors. The old one did not.
As in all cases like this, you should copy the VI to a new location, rename it, and modify it the way you want it before using it. If you modify it in place, it will be overwritten if you upgrade or repair your LabVIEW installation.
The VI itself is also rather inefficient (and all versions I have seen are). Use a case statement to execute the addition of quotes, since this hits the memory manager and is much slower than doing nothing.