mxcubecore.HardwareObjects.ALBA.ALBAFastShutter#
Tango Shutter Hardware Object Example XML:
<object class="ALBAEpsActuator">
<username>Photon Shutter</username>
<taurusname>bl13/ct/eps-plc-01</taurusname>
<channel type="sardana" polling="events" name="actuator">pshu</channel>
<states>Open,Closed</states>
</object>
- Public Interface:
- Commands:
- int get_state()
- Description:
returns current state
- Output:
integer value describing the state current states correspond to:
0: out 1: in 9: moving
11: alarm 13: unknown 23: fault
- string getStatus()
- Description:
returns current state as a string that can contain a more descriptive information about current state
- Output:
status string
- cmdIn()
Executes the command associated to the “In” action
- cmdOut()
Executes the command associated to the “Out” action
- Signals:
stateChanged
Functions
|
Classes
|
- class mxcubecore.HardwareObjects.ALBA.ALBAFastShutter.ALBAFastShutter(name)[source]#
Bases:
HardwareObject
- get_state()[source]#
Getter for state attribute.
Implementations must query the hardware directly, to ensure current results.
- Returns:
Current state.
- Return type:
- update_state()[source]#
Update self._state, and emit signal stateChanged if the state has changed.
- Parameters:
state (Optional[HardwareObjectState], optional) – State. Defaults to None.
- Raises:
ValueError – If state specified is invalid.