LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save run time values in exe

Hi!
In my application i want to save updated values in the exe.
When i run the exe and change the values in the list box, at the run time exe takes that changes.
But when i will close the exe and run it again, exe displays previous value (at the time of exe build).
So i want here, the updated values in exe.
Plz see the exe and vi attached.

Kaustubh
INDIA
Kaustubh V Gitapathi
0 Kudos
Message 1 of 2
(2,462 Views)
It may be possible but probably a bad idea, for a number of reasons: -
1) The exe will be virus scanned and data could form a valid virus pattern.
2) You could have an error in your updating code and corrupt the file - results, well who knows.

Speration of executable and data is better from a permissions perspective and systems management.

Imagine a scenario where you secure the exe file (read only permissions) from user tampering whilst recording runtime parameters for various users in parameter files (read write permissions). You have one parameter writing module and locate the parameter file in the users workspace folder. Your software will be more robust and flexible. If the parameters must be used for all users then you might consider the registry or an ini file in the program installation location.
Message 2 of 2
(2,457 Views)