LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Config data in plain text

Solved!
Go to solution

Hello all

 

I have a program with lots of controls (aprox. 35) and their value I need to save.

I looked at the write configuration file example but it seams to be a lot of work to save 35 controls (more may be added later)..

 

Also I looked at the following page:

http://decibel.ni.com/content/message/4098#4098

 

The reason why I cant use this VI is I would like to get the control values in plain text so I can use the values in other programs or manually.

Tried to mess around a bit with some array index and unbundle by name in order to get the names and values seperatly and then converting them

to a string and saving it, but I can't get the value from the variant converted to a string....

 

I know there is quite a lot posts with the config topic, but I couldn't find one describing a easy way to save all controls without doing it individually.

 

Hope you guys understand my problem and are able to help, just attached the VI from the link why my attempt to fix this..

 

Thanks

 

Regards

Tommy 

0 Kudos
Message 1 of 10
(4,504 Views)
Solution
Accepted by Tombech84

There is an OpenG vi that can save and load all Ctrl values of the F in the Variant Config palette.

 

Felix

Message 2 of 10
(4,497 Views)

Hello Felix

 

Thanks for your answer, this works like i wanted it to! 

 

Have a nice day


Regards

Tommy

0 Kudos
Message 3 of 10
(4,486 Views)

 


@f. Schubert wrote:

There is an OpenG vi that can save and load all Ctrl values of the F in the Variant Config palette.

 

Felix


 

Felix, I would really like to take a look at that VI you are referring to.

Do you know the name of it so I can search for it?
Or can you post a link to it?

Your link above brings me to the OpenG homepage.

Thanks a lot.

Cory K
0 Kudos
Message 4 of 10
(4,234 Views)

Get the VIPM and Install the OpenG palettes:

http://forums.jkisoft.com/index.php?showtopic=233

The one I mentioned is called 'OpenG Variant Configuration File VIs', the name in the VIPM will be similar.

 

Felix

Message 5 of 10
(4,221 Views)

 


@f. Schubert wrote:

Get the VIPM and Install the OpenG palettes:

http://forums.jkisoft.com/index.php?showtopic=233

The one I mentioned is called 'OpenG Variant Configuration File VIs', the name in the VIPM will be similar.

 

Felix


 

I already have VIPM, so I will look for the Variant Configuration library. Thanks a lot.

Cory K
0 Kudos
Message 6 of 10
(4,210 Views)

Hi

 

I am using Lab View 8.6 . Please port that code in Lab View 8.6 and post again.

 

I badly need that code .

Please help me.

 

 

Thanks

Anirban

 

0 Kudos
Message 7 of 10
(4,133 Views)

To which code are you refering? The original post's incomplete code, or the tools in the OpenG toolbox. The later can be download, plus a lot of other handy code from Felix's link to the OpenG page. The original post's was what didn't work, not his finished result.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 8 of 10
(4,120 Views)

 

Sorry for the confusion . Actually I am referring to solution of the original post  i.e  Programmatically Save Control Values 2009.vi 23 KB .

 

Thanks

Anirban

0 Kudos
Message 9 of 10
(4,107 Views)

That is not the solution. The marked solution was to use the OpenG function. Don't you see the link in the green bar - Go to Solution?

 

If you still want the code that does not work, download it and post it to the downconvert thread, just like it says at the top of the LabVIEW page

0 Kudos
Message 10 of 10
(4,097 Views)