mahos.meas.recorder.Recorder#
- class mahos.meas.recorder.Recorder(gconf: dict, name, context=None)#
Generic data-logging measurement for time-series data.
The target instruments must implement following APIs:
get_param_dict_labels()
,get_param_dict()
,configure()
,start()
,stop()
,get("unit")
, andget("data")
.- Parameters:
target.servers (dict[str, str]) – The InstrumentServer targets (instrument name, server full name).
target.tweakers (list[str]) – The Tweaker targets (list of tweaker full name).
target.log (str) – The LogBroker target (broker full name).
mode (dict[str, dict[str, tuple[str, str]]]) – The dictionary to define the measurement modes. First-level key is mode name and second-level key is measurement value name. The tuple[str, str] (instrument name, label name) defines how to get each measurement value.
- __init__(gconf: dict, name, context=None)#
Methods
__init__
(gconf, name[, context])change_state
(msg)Change state to msg.state.
close_resources
()Close custom resources.
export_data
(msg)Export data.
get_param_dict
(msg)Get parameter dict.
get_param_dict_labels
(msg)Get parameter dict labels.
handle_req
(msg)Handle Request other than basic requests.
load_data
(msg)Load data.
main
()Main procedure that will be looped.
reset
(msg)save_data
(msg)Save data.
wait
()Wait until required resources are ready.
Attributes