Trees | Indices | Help |
|
---|
|
SpecMotorA class
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Constructor Keyword arguments: specName -- name of the motor in Spec (defaults to None) specVersion -- 'host:port' string representing a Spec server to connect to (defaults to None) |
Connect to a remote Spec Connect to Spec and register channels of interest for the specified motor Arguments: specName -- name of the motor in Spec specVersion -- 'host:port' string representing a Spec server to connect to |
Callback triggered by a 'connected' event from Spec To be extended by derivated classes. |
Private callback triggered by a 'disconnected' event from Spec Put the motor in NOTINITIALIZED state. |
Callback triggered by a 'disconnected' event from Spec To be extended by derivated classes. |
Callback triggered by a 'low_limit' or a 'high_limit' channel update, or when the sign or offset for motor changes To be extended by derivated classes. |
Callback triggered when motor starts or stops moving Change the motor state accordingly. Arguments: channelValue -- value of the channel |
Private callback triggered by a 'low_lim_hit' or a 'high_lim_hit' channel update Update the motor state accordingly. Arguments: channelValue -- value of the channel channelName -- name of the channel (either 'low_lim_hit' or 'high_lim_hit') |
Callback triggered by a position channel update To be extended by derivated classes. Arguments: absolutePosition -- motor absolute position |
Callback triggered by a 'sync_check' channel update Call the self.syncQuestionAnswer method and reply to the sync. question. Arguments: channelValue -- value of the channel |
Answer to the sync. question Return either '1' (YES) or '0' (NO) Arguments: specSteps -- steps measured by Spec controllerSteps -- steps indicated by the controller |
Private callback triggered by a 'unusable' channel update Update the motor state accordingly Arguments: unusable -- value of the channel |
Private method for changing the SpecMotor object's internal state Arguments: state -- the motor state |
Callback to take into account a motor state update To be extended by derivated classes Arguments: state -- the motor state |
Move the motor to the required position Arguments: absolutePosition -- position to move to |
Stop the current motor Send an 'abort' message to the remote Spec |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 20 03:53:37 2014 | http://epydoc.sourceforge.net |