Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

To Save in Lookout the State file from the application

I need that the program loads the variable values when start up like when it was written or designed. Also, I need that a autotuning process in the application loads and saves by program the values found for 4 valuables, so when the application is started up again, will hold the result of the last autotuning and all the rest like when was written the application. I think to save the State File aafter the autotuning can be a way.

How get this? Other ways?
0 Kudos
Message 1 of 3
(3,204 Views)
You might create a DataTable object and connect the values you'd like to save to DataTable.DataMembers. Then you can export/import the data to/from Excel.xls files. This works great for recipes, for example.
John T. Sampson
Message 2 of 3
(3,204 Views)

JTJams is absolutely right! You don't want to depend on the state file for mission-critical settings. DataTable and the XLS file is a good approach.

Having said that, would like to add the following for completeness: the state file can be used for not-so-critical settings. As you know, the L4T file gets saved automatically; every hour by default. You can however make this as low as 1 minute. It also gets saved when the process is closed.

One trick you can do (as explained in the online help), for a particular process whose state you want to preserve: bring the process to the right state, go into its properties and uncheck the "Save state file every..." check-box. Close the process thus saving its L4T file. Now, change the file-permissions
on this L4T to read-only. From now on the process gets loaded with this state.

My two cents..

Regards,

Khalid


0 Kudos
Message 3 of 3
(3,204 Views)