mxcubecore.HardwareObjects.MotorsNPosition#

Classes

MotorsNPosition(name)

<object class="MotorsNState">

class mxcubecore.HardwareObjects.MotorsNPosition.MotorsNPosition(name)[source]#

Bases: AbstractActuator

<object class=”MotorsNState”>

<username>Dummy</username>

<motors>

<object role=”role1” href=”/mot1”></object> <object role=”role2” href=”/mot2”></object>

</motors>

<deltas>

<role1>0.1</role1> <role2>0.3</role1>

</deltas>

<positions>
<position>

<name>BEAM</name> <role1>0.12</role1> <role2>0.22</role2> <favproperty>I am in the Beam</favproperty>

</position>

<position>

<name>OUTBEAM</name> <role1>2.3</role1> <role2>4.6</role2> <favproperty>I am out of Beam</favproperty>

</position>

</positions>

</object>

get_property_value_by_index(position_index=None, property_name=None)[source]#

Returns the value of the property with the given property_name at the specified position_index. If the property_name or position_index is invalid, returns None.

get_value()[source]#

Read the actuator position. :returns: Actuator position. :rtype: value

init()[source]#

Initialise actuator_name, username, read_only and default_value properties.

is_moving()[source]#

Descript. : True if the motor is currently moving

set_position(posname)[source]#
Allow to move by providing in order (if previous not found):

posname name index

stop()[source]#

Descript. :