LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remeber last value of string after closing the exe file

Solved!
Go to solution

hi,

I have problem with storing data into the string.

I am working on small project , where i need to print labels. I am using string control to print numbers. whenever i close the whole exe, and re open the exe program ,the string control does not remembers last value entered and displays blank. So, again I have to remember or note down the last value entered in the string and feed into it every time when i open exe.

 what i have to do?

0 Kudos
Message 1 of 3
(2,735 Views)
Solution
Accepted by topic author sandy1

Before you close your executable, you need to have the program write the value of that string out to a file.

 

When when your program starts, it needs to read that file and write the value to a local variable of that string.

Message 2 of 3
(2,729 Views)

Modify your program:

1) write the string in a text file before closing the executable;
2) read the text file when the executable starts.

 

 

Jean-Marc

Message 3 of 3
(2,726 Views)