LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving values with application

Greetings! I've made an application that receives temperature data. I have a control indicator that establishes the desired temperature. The problem is: during the .exe running, I cannot save a desirable temperature because If I reload the application it gives me the default value of the indicator (that I've defined). In conclusion: is there any way to 'store' the variables while the aplication is running? Thanks in advance
0 Kudos
Message 1 of 4
(2,803 Views)
Hi nasps

Yes, there are tons...
But you need to create a file that stores your settings.

For one setting, I would use the .ini file possibilities offered by labview. Their use is quite straightforward.

Please take some time to give a rating to my answer.
Cheers.

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 2 of 4
(2,803 Views)
Hi Doc-Doc and thank you for your quick response! I've already heard about the .ini file, but I confess that I'm a little bit confused how to write/read in it. In simple terms: I need to save a value and when I re-start the application the saved value must be the default one! Can you help?

nasps
0 Kudos
Message 3 of 4
(2,803 Views)
Yes :

1 - open a text file. In it write :
[data]
default=100.00

save it as default.ini

Use the read and / or write capabilities as shown in the attached exemple.
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 4 of 4
(2,803 Views)