mxcubecore.HardwareObjects.TangoShutter#
TangoShutter class - interface for shutter controlled by TANGO Implements _set_value, get_value methods
Tango states are: “UNKNOWN”, “OPEN”, “CLOSED”, “FAULT”, “MOVING”, “DISABLE”, “STANDBY”, “RUNNING”
Example xml file: <object class = “TangoShutter”>
<username>Safety Shutter</username> <tangoname>ab/cd/ef</tangoname> <command type=”tango” name=”Open”>Open</command> <command type=”tango” name=”Close”>Close</command> <channel type=”tango” name=”State” polling=”1000”>State</channel> <values>{“open”: “OPEN”, “cloded”: “CLOSED”, “DISABLE” : “DISABLE”}</values>
</object>
In this example the <values> tag contains a json dictionary that maps spectific tango shutter states to the convantional states defined in the TangoShutter Class. This tag is not necessay in cases where the tango shutter states are all covered by the TangoShuter class conventional states.
Classes
|
TANGO implementation of AbstractShutter |
|
Shutter states definitions. |
- class mxcubecore.HardwareObjects.TangoShutter.TangoShutter(name)[source]#
Bases:
AbstractShutter
TANGO implementation of AbstractShutter
- SPECIFIC_STATES#
alias of
TangoShutterStates
- get_state()[source]#
Get the device state. :returns: Device state. :rtype: (enum ‘HardwareObjectState’)