LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comments in Config files

Hallo,

The Configuration File VI's create a text based file which I can also edit
with an text editor.

I want to insert comment lines into such a file manually. Can I do this?
If yes, how can I mark them as comment lines
(maybe like /*This is a comment*/ as in C)

Thank you

Oliver Friedrich
0 Kudos
Message 1 of 2
(2,783 Views)
Oliver Friedrich wrote:
> Hallo,
>
> The Configuration File VI's create a text based file which I can also edit
> with an text editor.
>
> I want to insert comment lines into such a file manually. Can I do this?
> If yes, how can I mark them as comment lines
> (maybe like /*This is a comment*/ as in C)

The config files do not support specific comments but you can add
basically any lines. What I do is prepending a # before such lines. Be
aware that the config file VIs will actually read in those lines just as
well and if you request the list of all topics in a section you will get
those strings as topics as well. Also If you add programmatically new
topics to an ini file the VIs will append them to the end of the
section, so after a while your ini file
may not look as neat anymore as
you would like it.

Rolf K
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(2,783 Views)