LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add Quotes.vi not working as documented

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 ?.

0 Kudos
Message 1 of 5
(3,823 Views)

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

0 Kudos
Message 2 of 5
(3,812 Views)

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.

0 Kudos
Message 3 of 5
(3,790 Views)

I found this is still malfunction in LV2012 SP1. Can somebody confirm ?

0 Kudos
Message 4 of 5
(3,567 Views)

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.

0 Kudos
Message 5 of 5
(3,543 Views)