DrMemCS / drmem

Full source tree for the DrMem control system
MIT License
3 stars 4 forks source link

♻ Improve memory driver #106

Open rneswold opened 7 months ago

rneswold commented 7 months ago

The memory driver has two deficiencies:

To fix these problems, this issue proposes to change the driver configuration and driver itself. The base config key will be vars and it will return an array of maps. In the maps are two keys, name and initial. name takes a String and represents the name of the memory device. initial can take any value DrMem device value. If the memory device has not yet been set, this value will be immediately reported.

All the variables will be handled by the one instance.

Note that all variables defined in one instance of the driver will have the same path prepended to their names. If different paths are desired, then multiple instances of the driver will have to be used.

rneswold commented 5 months ago

109 adds the initial value to the config parameters. This driver still needs updating to allow a list of devices to be created using one instance.