LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to save data in a running application ,so i can reuse it when i am opening it again

Suppose I had made a group of variable settings for an application.

I have made sttings once & saved it,in a cluster or array,by assigning some name So i can use it again also.

But those saved items must be present When i will opening application again,so i don't need to set variables again.

 

How can I achieve That ?

 

0 Kudos
Message 1 of 7
(3,072 Views)

Use the "Configuration File VIs". When the app runs, see if the file exists. If it does exist, use the values from the file. When the app closes, write the config file. The Configuration example VIs may be helpful.

0 Kudos
Message 2 of 7
(3,068 Views)

configurated vi are not opening, once it is written ?

0 Kudos
Message 3 of 7
(3,065 Views)
Store values in a config file (it's a text file - see the examples). When you run the app, you can read the file and change the control values.
0 Kudos
Message 4 of 7
(3,062 Views)

Thank you

I hv saved data by using configuration file vi......

 

We need to give a path of text file to save data

 

If I will ran an application in other machine,WHAT PATH I SUPPOSED TO give ?

 

or ny other solution .........

0 Kudos
Message 6 of 7
(3,013 Views)

Use whatever path you want. Usually the file is saved in the same directory as the application, so you can use the Application Directory constant to return to you the path for the application.

0 Kudos
Message 7 of 7
(3,000 Views)