Retain global variables on restart
Posted: Wed May 13, 2015 11:00 am
Hi
How easy would it be to add in the function to retain global variables over a restart. Maybe to write them out to a file on shutdown and have the option to read them again when EG starts.
When updating a plug in you need to restart EG, or if the machine is being restarted. For both the these you lose any globals you may have (I have a couple with temperature and whether internal doors are open or closed), it would be handy to have the option to store them.
Maybe this could be as a plug in or part of the program.
thanks
Phil
How easy would it be to add in the function to retain global variables over a restart. Maybe to write them out to a file on shutdown and have the option to read them again when EG starts.
When updating a plug in you need to restart EG, or if the machine is being restarted. For both the these you lose any globals you may have (I have a couple with temperature and whether internal doors are open or closed), it would be handy to have the option to store them.
Maybe this could be as a plug in or part of the program.
thanks
Phil