취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Configuration string keys in LabVIEW 2009 changes

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?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 포인트
1/10 메시지
10,785 조회수

Dear Ton,

 

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;

  1. Download the attached VI and place in the following path: <Program Files>\National Instruments\LabVIEW\vi.lib\Utility\config.llb
  2. In the same folder, double-click NI_LVConfig.lvlib
  3. Right-click the Write folder and add the above-mentioned VI.

Hopefully this will bring you further,

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
2/10 메시지
10,740 조회수

This was reported to R&D (CAR # 204992) for further investigation.

3/10 메시지
10,666 조회수

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.

0 포인트
4/10 메시지
10,403 조회수

Hello pbuerki,

 

It is possible to edit the Palette as you want --> https://www.ni.com/docs/en-US/bundle/labview/page/editing-a-palette-set.html

 

Hope this helps!

Cédric | NI Belgium
0 포인트
5/10 메시지
10,370 조회수

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.


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 포인트
6/10 메시지
10,090 조회수

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.


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
7/10 메시지
10,079 조회수

@LabBEAN wrote:

 

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.

- Partha ( CLD until Oct 2027 🙂 )
0 포인트
8/10 메시지
10,062 조회수

I had the same issue, MATLAB does not like the quotes.  A right click option on the write VI would be nice.

0 포인트
9/10 메시지
9,329 조회수

in LabVIEW 2020 this is still not added, so I'v added a post to the idea exchange.


https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Remove-quotes-in-the-Configuration-quot-Write-Key-vi-...

0 포인트
10/10 메시지
6,586 조회수