04-06-2011 12:48 PM
hi i want to know how to save the controls value in PC. means if i assign 5 digital value to a control it should remain there even i restarts my PC.
Solved! Go to Solution.
04-06-2011 12:56 PM
Did you try a search? This has been asked dozens of times. There's lots of possibilities, and they all boil down to : save the values to a file when the application ends, and read them from a file when the application starts.
04-06-2011 02:09 PM
And here's an easy to use example - http://decibel.ni.com/content/docs/DOC-15349
04-06-2011 03:01 PM
This can mean two things. Will the default value always be 5? You could right click the control, select Data Operations, then Make Current Values Default. This can only be done at edit time and the value is saved with the vi. If you know you will always need the same default value then do this. If you need the user to be able to change the default value without editing and saving the vi then see the post by smercurio_fc above.
04-06-2011 07:00 PM
This is the easiest way I've found - someone else did all the work, I just need to put them at the start and end of my program.