03-30-2012 09:54 AM
I am trying to set up a UI for my techs where they can add columns to a test report and give each column a name. I have been taught a way to have them add/remove columns, but this VI must be used in TestStand later to create the report and the sequence must read the titiles of those columns. The problem is that the VI seems to dump the data once the VI is closed. What would be the best method to keep this data after closing the VI?
03-30-2012 10:06 AM
What control are you using?
Most often you right-click on the control go to Data Operations and select Make Current Value Default.
03-30-2012 11:40 AM
You need to save the data to a file and read the file at the beginning of the program to restore the data. The config file functions serve well for this purpose.
This question has come up numerous times before, so search the forums and you'll come across some examples.
03-30-2012 12:55 PM
If you are only storing a few values such as column headers, you could create a registry key and store it directly there.
I have used this method to save calibration and CAN settings so that the messages don't have to be re-input at each runtime and a file doe not need to be created to store the values.