-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function blocks for uniform handling of persistent data #61
Comments
|
We may also want to handle this outside of the built-in persistent variable support, e.g. saving the values in a file on the OS so they are essentially guaranteed to be consistent between software runs |
That's a good point - and a great reason to keep it inside |
I'm thinking something like (rough sketch):
The goal is to limit the number of writes for CFast card health while being somewhat robust to surprise outages and keeping the saved variables through refactors. It might even be possible to export, track, and restore the saved values if we need to change out the memory card or reimage for some reason. |
I quite like your sketch. I'm not sure if there's a hook for the planned shutdown, but there should be. I also really like the idea of an external file that can be easily downloaded, tracked, and version-controlled externally. (Maybe with BSD that could be improved since we have actual access to |
I could absolutely imagine a file scraper that periodically grabs the file and commits it, which becomes much simpler to implement with TC BSD |
Once this is done, this page should be modified:
https://confluence.slac.stanford.edu/pages/viewpage.action?pageId=337066917
The text was updated successfully, but these errors were encountered: