mahos.inst.interface.InstrumentInterface#
- class mahos.inst.interface.InstrumentInterface(client: InstrumentClient | MultiInstrumentClient, inst: str)#
Base class for Instrument Interface.
Standard Instrument API calls#
Below is the list of standard instrument API calls.
- InstrumentInterface.start(label: str = '') bool #
Start the instrument operation. Returns True on success.
(if given) label specifies a subsystem of the instrument to start.
- InstrumentInterface.stop(label: str = '') bool #
Stop the instrument operation. Returns True on success.
(if given) label specifies a subsystem of the instrument to stop.
- InstrumentInterface.shutdown() bool #
Shutdown the instrument and get ready to power-off. Returns True on success.
- InstrumentInterface.pause(label: str = '') bool #
Pause the instrument operation. Returns True on success.
(if given) label specifies a subsystem of the instrument to pause.
- InstrumentInterface.resume(label: str = '') bool #
Resume the instrument operation. Returns True on success.
(if given) label specifies a subsystem of the instrument to resume.
- InstrumentInterface.reset(label: str = '') bool #
Reset the instrument settings. Returns True on success.
(if given) label specifies a subsystem of the instrument to reset.
- InstrumentInterface.set(key: str, value=None, label: str = '') bool #
Set an instrument setting or commanding value. Returns True on success.
(if given) label specifies a subsystem of the instrument.
- InstrumentInterface.get(key: str, args=None, label: str = '')#
Get an instrument setting or commanding value.
(if given) label specifies a subsystem of the instrument.
- InstrumentInterface.configure(params: dict, label: str = '') bool #
Configure the instrument settings. Returns True on success.
- InstrumentInterface.get_param_dict(label: str = '') P.ParamDict[str, P.PDValue] | None #
Get ParamDict for label.
- InstrumentInterface.get_param_dict_labels() list[str] #
Get list of available ParamDict labels.
Other Methods
|
Acquire lock of this instrument. |
|
Release lock of this instrument. |
|
Check if this instrument is locked. |
|
Get help of instrument name. |