eez-open / modular-psu-firmware

Firmware for EEZ Bench Box 3 (BB3)
https://www.envox.eu/eez-bb3/
GNU General Public License v3.0
94 stars 42 forks source link

Store and manage script settings in profiles #271

Open fietser28 opened 3 years ago

fietser28 commented 3 years ago

I would like the possibility for scripts (both micropython and flow) to store there settings inside profiles. Possibly via SCPI commands like MEM:WRITE "name", "value" / MEM:READ "name"

To avoid naming conflicts between scripts and the system AND give a user a way to manage settings in profiles (=delete them): if a script stores variables it gets it's own section (=scriptname) in the profile.

Sections are listed in the profile UI, allowing the user to list and delete them with equivalent SCPI commands. Note: I think only listing and deleting is needed, not editing/createing. That's up to the scripts.

MEME:WRITE/READ should probably work when MEM:STATE:FREEze is 1, because that is the common state scripts are running in?