| Home | Trees | Index | Help |
|---|
|
|
mechanism.mechanism --+
|
linear
|
|||
|
__init__(self,
cortex,
icu_num,
axis_num,
base_speed,
max_speed,
acceleration,
deceleration,
position,
lower_limit,
upper_limit,
units,
name='linear')
Initialiser for linear mechanism class. |
|||
|
updateConfig(self,
config)
Should be called by the parent instrument object's destructor to enable status information to be saved to file on exit. |
|||
|
setupLinear(self)
Performs an automatic setup procedure. |
|||
|
getUnits(self)
Return the number of steps per unit of movement |
|||
|
getLimits(self)
Returns the allowed range of movement of the mechanism as tuple of (lowerLimit, upperLimit), in the units specified by setUnits. |
|||
|
getMotorParams(self)
Returns a tuple containing the four motor motion parameters, baseSpeed, maxSpeed, acceleration, deceleration, in terms of the units specified with setUnits. |
|||
|
getPosition(self)
Returns the current mechanism position, in units defined by setUnits(). |
|||
|
moveBy(self,
distance)
Move the mechanism by a given distance. |
|||
|
moveTo(self,
newPosition)
Move the mechanism to the given position. |
|||
|
setUnits(self,
units)
Sets the number of steps per unit of movement. |
|||
|
setLimits(self,
lowerLimit,
upperLimit)
Set the allowed range of movement of the mechanism. |
|||
|
setMotorParams(self,
baseSpeed,
maxSpeed,
acceleration,
deceleration)
Sets the four motor motion parameters, baseSpeed, maxSpeed, acceleration and deceleration. |
|||
|
setPosition(self,
new_position=0)
Defines the current mechanism position to be equal to the single integer argument. |
|||
|
|||
Initialiser for linear mechanism class.
Arguments:
cortex: String containing the name of the cortex based
ICU daisy chain instance that this mechanism is a
part of.
icuNum: Which ICU in the chain this mechanism is connected
to.
axisNum: Which axis of the ICU the mechansism is connected
to.
baseSpeed: Starting speed (units per sec)
maxSpeed: Peak speed (units per sec?)
acceleration:Acceleration (units per sec^2)
deceleration:Deceleration (units per sec^2)
position: Initial position of the mechanism (units)
lower_limit: Lower limit of allowed movement range (units)
upper_limit: Upper limit of allowed movement range (units)
units: Number of steps corresponding to one unit of movement
name: Label used for logging purposes.
|
Should be called by the parent instrument object's destructor to enable status information to be saved to file on exit. Takes a ConfigParserRT.SafeConfigParser object as argument.
|
|
|
|
|
|
|
|
|
|
|
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 3.0alpha2 on Sun Jun 11 16:26:28 2006 | http://epydoc.sf.net |