07-30-2015 10:15 AM
Hello all,
I'm a beginner on labview since a few months. I am developping an HCI which save datas when the user clicks on push-buttons. There is an " history of data record" which is recording all the actions performed by users.
I need to delete the history (data of a multicolonm listbox) only when the user click on a reset button. But I don't know how to do it. The listbox's data's are cleared on each VI excecution, and I don't want this behaviour, I need to save the history even thought the Vi is stopped by the user.
The way I build "history of data record", i initialize a retroactive loop with the data of the multicolonm listbox, but it doesn't work, I have tryed many ways.
many thanks in advance for your answers.
Thibaud
Solved! Go to Solution.
07-30-2015 10:20 AM
Any data you want to store between runs of a program have to be saved to a file. So when you close the application, your code should store whatever it want to preserve to a file. Then when the application starts up, it reads that file and populates the data wherever it goes.
There are many file types you could use for this: binary file (good for just storing a single array), configuration file (NI has a really good API for using these), XML, database.