LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save and load control's values

Hello,

Thank you john and evan,

I use, as you've understand, the invoke node "get all control value variant", and i want to change the format of the output array in order to save it an load it later to get back the configuration of my VI. For the moment i've try as john tell me with the data manipulation's functions and it's not runing. I send you an example of the code that i read in the array it's a string for controls name and a variant for the values.

I don't really now in what format i must change them to load it later with the invoke node "set control value".

Regards
alexis (sorry for my awfull english)
0 Kudos
Message 1 of 6
(3,469 Views)
You could use the OpenG "Write Panel to INI.vi" and "Read Panel to INI.vi"
functions if you don't mind writing your data to a text file instead of to a
spreadsheet. I have wrappers for these functions which you can pop on your
front panel with minimal fuss. Please see the attachments for an example.
I'll post my vi's if your interested. They will require you to install the
OpenG lib_variantconfig from the OpenG toolkit, which you can do using the
OpenG Commander (See http://openg.org)



0 Kudos
Message 2 of 6
(3,442 Views)
Hmm, the attachements didn't attach so here's another try:
0 Kudos
Message 3 of 6
(3,438 Views)
And now for the other:
0 Kudos
Message 4 of 6
(3,437 Views)
> spreadsheet. I have wrappers for these functions which you can pop on
> your front panel with minimal fuss. Please see the attachments for an
> example.

I, of course, meant block diagram.


0 Kudos
Message 5 of 6
(3,424 Views)
See also Alexis's original thread with a follow-up by David D. that provides some nice code. It's best if you try to stick with one thread per question.

There really are a staggering number of possible approaches to this problem, and you might want to search for some other, similar threads to get more information and advice.

--John
0 Kudos
Message 6 of 6
(3,424 Views)