I am trying to write a configuration file to be used by other (non-labview) software.
However the LabVIEW 2009 'write sting key' function adds quotes around string keys, even if the 'raw string' mode is used, this makes this tool USELESS, and I could only finde a little note in the online help
When VIs write to a configuration file, they place quotation marks around any string or path data. LabVIEW also supports single quotes around values in .ini files.
I could not find it in the Upgrade notes.
Could we get an option to remove the quotes?
thank you so much for your post. This problem was brought to the attention from our R&D department, hopefully they will add this soon to the writekey.vi . There is a work arroud for now; you can add the attached VI to the library;
Hopefully this will bring you further,
As of LV2011SP1, this issue has not been fixed yet. The workaround works fine though. Thank you very much for posting this.
However, a minor issue is that after copying the file into the specified location and restarting LabVIEW, the added vi does not show up in the File I/O >> Configuration File VIs menu.
Somehow this still hasn't been addressed. Please add a version of the Write String VI that doesn't add quotes OR change Add Key.vi to be public so that we can call it directly. Editing the LabVIEW IDE isn't really an option when there are multiple developers, VCS, and long life cycles. Thanks.
fwiw, I've attached a drop in replacement for Write Key (String).vi that doesn't write quotes or escape characters to the file. I just tore out all of the privately scoped subVIs from Add Key.vi so there's one monolithic diagram with no library dependency.
Please add a version of the Write String VI that doesn't add quotes OR change Add Key.vi to be public so that we can call it directly.
You may have to file a Feature request in the LV IDea Exchange, so that this gets more visibility to NI R&D.
I had the same issue, MATLAB does not like the quotes. A right click option on the write VI would be nice.
in LabVIEW 2020 this is still not added, so I'v added a post to the idea exchange.