LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

best practice to import/export control settings to/from file (text)?

I have a VI that has ~50 individual controls. 

 

Is there a clean and/or (preferably) recommended way for capturing their setting at a moment in time and writing them to a file in text, xml, or whatever?

How about the reverse, where the file is read, and it is used to populate the settings.

 

These are not inputs/outputs of the VI, but are controls that should (in general) not move around much.  When they do move around though, I would like to be able to hit "load" and not have to stop/start the VI to the change proliferated.

 

I'm personally using Windows, but folks who use my stuff will be on either Windows or Linux.

 

Does GXML work on Linux?

 

Some links that I saw:

0 Kudos
Message 1 of 3
(2,827 Views)

If youre looking to just read and write the values of control and indicators i would suggest using the config file functions.  Open-G makes a useful set of functions and it is free.



-Matt
0 Kudos
Message 2 of 3
(2,817 Views)

Glad you asked! the clean easy way is to use an Often overlooked and underused built-in feature of LabVIEW! A datalog file and datalogging.  
The help file explains it fairly well.

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,816 Views)