mxcubecore.HardwareObjects.LNLS.LNLSMachineInfo#

Classes

LNLSMachineInfo(name)

This class implements the beam current visualization for LNLS.

class mxcubecore.HardwareObjects.LNLS.LNLSMachineInfo.LNLSMachineInfo(name)[source]#

Bases: AbstractMachineInfo

This class implements the beam current visualization for LNLS.

YAML Example#

%YAML 1.2 — class: LNLS.LNLSMachineInfo.LNLSMachineInfo epics: “SI-Glob:AP-CurrInfo:Current-Mon”:

channels:
current:

suffix: ‘’ polling_period: 200

“SI-Glob:AP-CurrInfo:Lifetime-Mon”:
channels:
lifetime:

suffix: ‘’ polling_period: 200

“AS-Glob:AP-MachShift:Mode-Sts”:
channels:
message:

suffix: ‘’ polling_period: 200

“AS-Glob:AP-InjCtrl:Mode-Sel”:
channels:
fill_mode:

suffix: ‘’ polling_period: 200

configuration:

parameters: ‘[“current”, “message”, “lifetime”, “fill_mode”]’

get_current() float[source]#

Read the ring current.

Returns:

Current [mA].

Return type:

float

get_fill_mode() str[source]#

Read the fill mode as text.

Returns:

Machine fill mode

Return type:

str

get_lifetime() str[source]#

Read the lifetime.

Returns:

Lifetime [s].

Return type:

str

get_message() str[source]#

Read the operator’s message.

Returns:

Message.

Return type:

str

init()[source]#

Get the attributes to be defined as keys in the _machine_info_dict