mahos.meas.tweaker.Tweaker#
- class mahos.meas.tweaker.Tweaker(gconf: dict, name, context=None)#
Generic tweaker for manually-tunable Instrument’s ParamDicts.
The instrument must provide ParamDict-based interface, i.e.,
get_param_dict_labels()
,get_param_dict()
, andconfigure()
.- Parameters:
target.servers (dict[str, str]) – The InstrumentServer targets (instrument name, server full name).
target.log (str) – The LogBroker target (broker full name).
param_dicts (list[str]) – The list of <instrument name>::<ParamDict label name>.
- __init__(gconf: dict, name, context=None)#
Methods
__init__
(gconf, name[, context])handle_req
(msg)load
(msg)Load the tweaker state into current param_dicts.
main
()Main procedure that will be looped.
read
(msg)read_all
(msg)reset
(msg)save
(msg)Save tweaker state (param_dicts and start_stop_state) to file using h5.
start
(msg)stop
(msg)wait
()Wait until required resources are ready.
write
(msg)write_all
(msg)Attributes