LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving settings file

Is it possible to have LabView save the setting of a VI to a text file?
0 Kudos
Message 1 of 7
(3,216 Views)
Hi Timkd,
    what do you mean exactly? Do you want to output on a file "VI properties..." on file menu, or you just want to save values entered in Front Panel objects (strings, bools.....)?

   In the latter case, I don't know if there's a simple VI that handle this, I'd acquire values from various elements and store them in a .ini file, since you have useful ini files functions (File I/O --> configuration file VIs palette).

graziano
0 Kudos
Message 2 of 7
(3,212 Views)

Thank you graziano, I will try this.

Timkd

0 Kudos
Message 3 of 7
(3,194 Views)
Hi!
   So, your question is "How to save to a file all input data in  the front panel?", right? Smiley Happy

graziano
0 Kudos
Message 4 of 7
(3,173 Views)
Yes, it is. I did think of a crude way of doing it. I just merge the signals and save the merged signal to a measurement file and comment with the titles resulting in the attached. Do you know of any way to have Labview put the titles above its respective setting?
 
Thanks
 
Timkd
0 Kudos
Message 5 of 7
(3,159 Views)
What I would do is scan for all controls on the front panel, and get their names & values.  Those would then be written to an xml file.  Very simple to implement in LV8.x using the "Flatten to XML" & "Write to XML File".  The xml file is also easy to read in a text editor, and the data can be just as easily read back from the xml file.
 
RayR
0 Kudos
Message 6 of 7
(3,151 Views)
Thank you for your help
0 Kudos
Message 7 of 7
(3,137 Views)