mxcubecore.HardwareObjects.ALBA.ALBAZoomMotor#

[Name] ALBAZoomMotor

[Description] Hardware Object is used to manipulate the zoom of the OAV camera.

[Channels] - position - state - labels

[Commands]

[Emited signals] - stateChanged - predefinedPositionChanged

[Functions] - None

[Included Hardware Objects] - None

Example Hardware Object XML file :#

<object class=”ALBAZoomMotor”>

<username>Zoom</username> <taurusname>ioregister/eh_zoom_tangoior_ctrl/2</taurusname> <alias>zoom</alias> <actuator_name>Zoom</actuator_name> <channel type=”sardana” polling=”200” name=”position”>Value</channel> <channel type=”sardana” polling=”200” name=”state”>State</channel> <channel type=”sardana” name=”labels”>Labels</channel> <interval>200</interval> <threshold>0.001</threshold>

</object>

Functions

test_hwo(zoom)

Classes

class mxcubecore.HardwareObjects.ALBA.ALBAZoomMotor.ALBAZoomMotor(name)[source]#

Bases: Device, AbstractMotor

get_limits()[source]#

Return actuator low and high limits.

Returns:

Two-item tuple (low limit, high limit).

Return type:

(tuple)

get_state()[source]#

Getter for state attribute.

Implementations must query the hardware directly, to ensure current results.

Returns:

Current state.

Return type:

HardwareObjectState

get_value()[source]#

Read the actuator position.

Returns:

Actuator position.

init()[source]#

Hardware object init.

is_ready()[source]#

Convenience function: Check if the object state is READY.

The same effect could be achieved with `python self.get_state() == self.STATES.READY `

Returns:

True if ready, otherwise False.

Return type:

bool