TwiceAsNice
2019-02-18
|
#include <NDeviceDummy.h>
Classes | |
struct | PositionBlock |
Public Member Functions | |
MoccaNDeviceDummy (const Nice::JointPtr &_config) | |
virtual | ~MoccaNDeviceDummy () |
virtual void | open () |
open device More... | |
virtual void | close () |
close device More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
reset the device More... | |
virtual void | version () |
version More... | |
virtual void | init (Basda::DeviceAsync &=Basda::Device::s_async) |
init the device More... | |
virtual void | deinit (Basda::DeviceAsync &=Basda::Device::s_async) |
deinit the device More... | |
virtual void | activate (DeviceAsync &=Basda::Device::s_async) |
activate the device More... | |
virtual void | deactivate (DeviceAsync &=Basda::Device::s_async) |
deactivate the device More... | |
virtual void | chat (std::string _commandID, std::string _cardNo, std::string _moduleNo, std::string _selectID, std::string _parameter, std::string _numberOfLines, DeviceAsync &=s_async) |
This method send the command string to the electronic. More... | |
virtual std::string | dontParse (DeviceAsync &=s_async) |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i tMore... | |
virtual std::string | receiveDataRaw (std::string _commandID, std::string _cardNo, std::string _moduleNo, std::string _numberOfLines, DeviceAsync &=s_async) |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i tMore... | |
virtual bool | isReachable () |
virtual void | prepareMoveSync (Nice::BitSet _motors) |
virtual void | startMoveSync () |
void | prepareDirectMove (const Nice::NPoint &_acceleration, const Nice::NPoint &_velocity, const Nice::NPoint &_deceleration) |
This method setup the acceleration anv velocity for a direct point to point move. More... | |
virtual void | moveAbsolute (const Nice::NPoint &_positions, Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the absolute position. More... | |
virtual void | moveAbsoluteStart (const Nice::NPoint &, Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveAbsoluteWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveRelative (const Nice::NPoint &_positions, Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the relative position. More... | |
virtual void | moveRelativeStart (const Nice::NPoint &, Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveRelativeWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHome (Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the home position. More... | |
virtual void | moveToHomeStart (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHomeWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHomeSingle (int _motor, Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToHomeSingleStart (int _motor, Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHomeSingleWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToLimit (const Nice::NPoint &_positions, Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the positive limit switch. More... | |
virtual void | moveToLimitStart (const Nice::NPoint &_positions, Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToLimitWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToPositiveLimit (Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the positive limit switch. More... | |
virtual void | moveToPositiveLimitStart (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToPositiveLimitWait (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToNegativeLimit (Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the negative limit switch. More... | |
virtual void | moveToNegativeLimitStart (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToNegativeLimitWait (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | stop () |
All motors of a device stop moving. More... | |
virtual void | abort () |
All motors of a device abort the current movement. More... | |
virtual Nice::NPoint | getPosition () |
Returns the current positions of all motors. More... | |
virtual Nice::NPoint | getDeviceEncoderPosition () |
Returns the current device internal position encoder of all motors. More... | |
virtual Nice::NPoint | getAbsoluteEncoderPosition () |
Returns the current absolute encoder positions of all motors. More... | |
virtual Nice::NPoint | getIncrementalEncoderPosition () |
Returns the current incremental encoder positions of all motors. More... | |
virtual void | setPosition (const Nice::NPoint &_position) |
Change the absolute position of all motors. More... | |
virtual Nice::NPoint | getVelocity () |
Returns the current velocity of all motors. More... | |
virtual Nice::SeqSeqDouble | getBasicSettings () |
Returns the basic settings of all motors. More... | |
virtual void | setVelocitySetting (const Nice::NPoint &_velocity) |
Set the velocity configuration parameter of all motors. More... | |
virtual void | setAccelerationSetting (const Nice::NPoint &_acceleration) |
Set the acceleration configuration parameter of all motors. More... | |
virtual void | setDecelerationSetting (const Nice::NPoint &_deceleration) |
Set the deceleration configuration parameter of all motors. More... | |
virtual void | setJerkSetting (const Nice::NPoint &_jerk) |
Set the jerk configuration parameter of all motors. More... | |
virtual bool | isAtLimit (Nice::NPoint &) |
Returns the current limit switch state of all motors. More... | |
virtual bool | isMoving (Nice::BitSet &) |
Returns the motion flag of all motors. More... | |
virtual bool | isAtHome (Nice::BitSet &) |
This method indicate whether the motor is at the home position. More... | |
virtual void | setLinkTimeout (Nice::Time _tcpConnectionTimeout) |
virtual Nice::SeqTime | getLinkTimeout () |
virtual Nice::NPoint | getReferenceTime () |
virtual Nice::NPoint | getCurrentTime () |
virtual void | checkMotionError () |
virtual void | startExternalProfile (const Nice::Date &_startDate, const Nice::NPoint &_positionSequence, unsigned int, unsigned int _samplesPerSegment, unsigned int _faultTolerance, Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | changeExternalProfile (const Nice::Date &_date, const Nice::NPoint &_positionSequenceBlocks) |
void | prepareExternalProfile (const Nice::SeqSeqInt &_segmentsX, const Nice::SeqSeqInt &_segmentsY, Basda::DeviceAsync &_async=Basda::Device::s_async) |
void | startExternalProfile (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual Nice::SeqBitSet | getPositionSwitchStatus () |
The external profile will be configured and the external profile will uploaded to the MoCon. More... | |
virtual void | dumpStatusInformation (Basda::DeviceAsync &_asynch, bool _compareParameter=false) |
virtual Nice::Completion | getProgress () |
virtual void | setCollision (Nice::SeqPoint _collisions) |
MoccaNDeviceDummy (const Nice::JointPtr &_config) | |
virtual | ~MoccaNDeviceDummy () |
virtual void | open () |
open device More... | |
virtual void | close () |
close device More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
reset the device More... | |
virtual void | version () |
version More... | |
virtual void | init (Basda::DeviceAsync &=Basda::Device::s_async) |
init the device More... | |
virtual void | deinit (Basda::DeviceAsync &=Basda::Device::s_async) |
deinit the device More... | |
virtual void | activate (DeviceAsync &=Basda::Device::s_async) |
activate the device More... | |
virtual void | deactivate (DeviceAsync &=Basda::Device::s_async) |
deactivate the device More... | |
virtual void | chat (std::string _commandID, std::string _cardNo, std::string _moduleNo, std::string _selectID, std::string _parameter, std::string _numberOfLines, DeviceAsync &=s_async) |
This method send the command string to the electronic. More... | |
virtual std::string | dontParse (DeviceAsync &=s_async) |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i tMore... | |
virtual std::string | receiveDataRaw (std::string _commandID, std::string _cardNo, std::string _moduleNo, std::string _numberOfLines, DeviceAsync &=s_async) |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i tMore... | |
virtual bool | isReachable () |
virtual void | prepareMoveSync (Nice::BitSet _motors) |
virtual void | startMoveSync () |
void | prepareDirectMove (const Nice::NPoint &_acceleration, const Nice::NPoint &_velocity, const Nice::NPoint &_deceleration) |
This method setup the acceleration anv velocity for a direct point to point move. More... | |
virtual void | moveAbsolute (const Nice::NPoint &_positions, Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the absolute position. More... | |
virtual void | moveAbsoluteStart (const Nice::NPoint &, Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveAbsoluteWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveRelative (const Nice::NPoint &_positions, Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the relative position. More... | |
virtual void | moveRelativeStart (const Nice::NPoint &, Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveRelativeWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHome (Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the home position. More... | |
virtual void | moveToHomeStart (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHomeWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHomeSingle (int _motor, Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToHomeSingleStart (int _motor, Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToHomeSingleWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToLimit (const Nice::NPoint &_positions, Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the positive limit switch. More... | |
virtual void | moveToLimitStart (const Nice::NPoint &_positions, Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToLimitWait (Basda::DeviceAsync &=Basda::Device::s_async) |
virtual void | moveToPositiveLimit (Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the positive limit switch. More... | |
virtual void | moveToPositiveLimitStart (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToPositiveLimitWait (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToNegativeLimit (Basda::DeviceAsync &_async=Basda::Device::s_async) |
All motors of a device move to the negative limit switch. More... | |
virtual void | moveToNegativeLimitStart (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | moveToNegativeLimitWait (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | stop () |
All motors of a device stop moving. More... | |
virtual void | abort () |
All motors of a device abort the current movement. More... | |
virtual Nice::NPoint | getPosition () |
Returns the current positions of all motors. More... | |
virtual Nice::NPoint | getDeviceEncoderPosition () |
Returns the current device internal position encoder of all motors. More... | |
virtual Nice::NPoint | getAbsoluteEncoderPosition () |
Returns the current absolute encoder positions of all motors. More... | |
virtual Nice::NPoint | getIncrementalEncoderPosition () |
Returns the current incremental encoder positions of all motors. More... | |
virtual void | setPosition (const Nice::NPoint &_position) |
Change the absolute position of all motors. More... | |
virtual Nice::NPoint | getVelocity () |
Returns the current velocity of all motors. More... | |
virtual Nice::SeqSeqDouble | getBasicSettings () |
Returns the basic settings of all motors. More... | |
virtual void | setVelocitySetting (const Nice::NPoint &_velocity) |
Set the velocity configuration parameter of all motors. More... | |
virtual void | setAccelerationSetting (const Nice::NPoint &_acceleration) |
Set the acceleration configuration parameter of all motors. More... | |
virtual void | setDecelerationSetting (const Nice::NPoint &_deceleration) |
Set the deceleration configuration parameter of all motors. More... | |
virtual void | setJerkSetting (const Nice::NPoint &_jerk) |
Set the jerk configuration parameter of all motors. More... | |
virtual bool | isAtLimit (Nice::NPoint &) |
Returns the current limit switch state of all motors. More... | |
virtual bool | isMoving (Nice::BitSet &) |
Returns the motion flag of all motors. More... | |
virtual bool | isAtHome (Nice::BitSet &) |
This method indicate whether the motor is at the home position. More... | |
virtual void | setLinkTimeout (Nice::Time _tcpConnectionTimeout) |
virtual Nice::SeqTime | getLinkTimeout () |
virtual Nice::NPoint | getReferenceTime () |
virtual Nice::NPoint | getCurrentTime () |
virtual void | checkMotionError () |
virtual void | startExternalProfile (const Nice::Date &_startDate, const Nice::NPoint &_positionSequence, unsigned int, unsigned int _samplesPerSegment, unsigned int _faultTolerance, Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual void | changeExternalProfile (const Nice::Date &_date, const Nice::NPoint &_positionSequenceBlocks) |
void | prepareExternalProfile (const Nice::SeqSeqInt &_segmentsX, const Nice::SeqSeqInt &_segmentsY, Basda::DeviceAsync &_async=Basda::Device::s_async) |
void | startExternalProfile (Basda::DeviceAsync &_async=Basda::Device::s_async) |
virtual Nice::SeqBitSet | getPositionSwitchStatus () |
The external profile will be configured and the external profile will uploaded to the MoCon. More... | |
virtual void | dumpStatusInformation (Basda::DeviceAsync &_asynch, bool _compareParameter=false) |
virtual Nice::Completion | getProgress () |
virtual void | setCollision (Nice::SeqPoint _collisions) |
![]() | |
MoccaNDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaNDevice () |
Constructor. More... | |
MoccaNDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaNDevice () |
Constructor. More... | |
MoccaNDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaNDevice () |
Constructor. More... | |
![]() | |
MoccaDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaDevice () |
MoccaDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaDevice () |
MoccaDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaDevice () |
![]() | |
Device (const Nice::JointPtr &_config) | |
constructor. This is an elementary (lazy) action which stores the name and gets configuration. More... | |
virtual | ~Device () |
destructor Does nothing More... | |
virtual void | setConfig (const Nice::JointPtr &_config) |
init with config tree ptr More... | |
Nice::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Device (const Nice::JointPtr &_config) | |
constructor. This is an elementary (lazy) action which stores the name and gets configuration. More... | |
virtual | ~Device () |
destructor Does nothing More... | |
virtual void | setConfig (const Nice::JointPtr &_config) |
init with config tree ptr More... | |
Nice::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Protected Member Functions | |
void | setIsReachable (const bool _isReachable) |
void | startTimer (double _distance) |
void | waitInternal (const std::string _s, Basda::DeviceAsync &_async) |
void | setIsReachable (const bool _isReachable) |
void | startTimer (double _distance) |
void | waitInternal (const std::string _s, Basda::DeviceAsync &_async) |
Protected Attributes | |
Nice::NPoint | m_maxPosition |
Nice::NPoint | m_minPosition |
Nice::NPoint | m_maxVelocity |
Nice::NPoint | m_minVelocity |
Nice::NPoint | m_limit |
PositionBlock | m_commandedPosition |
PositionBlock | m_absEncPosition |
PositionBlock | m_incEncPosition |
Nice::NPoint | m_referenceTime |
bool | m_isReachable |
Nice::Timer | m_timer |
Nice::Time | m_duration |
Nice::Time | m_tcpConnectionTimeout |
std::string | m_cardNo |
std::string | m_moduleNo |
std::string | m_commandID |
bool | m_inMotion |
Nice::Mutex | m_mutex |
![]() | |
Nice::Completion | m_completion |
![]() | |
Nice::JointPtr | m_config |
Nice::JointPtr | m_cfg |
Nice::JointPtr | m_var |
std::string | m_name |
Basda::MoccaNDeviceDummy::MoccaNDeviceDummy | ( | const Nice::JointPtr & | _config | ) |
|
virtual |
Basda::MoccaNDeviceDummy::MoccaNDeviceDummy | ( | const Nice::JointPtr & | _config | ) |
|
virtual |
|
virtual |
All motors of a device abort the current movement.
Implements Basda::MoccaDevice.
|
virtual |
All motors of a device abort the current movement.
Implements Basda::MoccaDevice.
|
virtual |
activate the device
Implements Basda::Device.
|
virtual |
activate the device
Implements Basda::Device.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
This method send the command string to the electronic.
This method is set to public due to requests from Lorenzo Busoni. BUT THE USER OF THIS METHOD TAKE OVER THE RESPONSIBILITY OF THE CORRECT ERROR HANDLING. THE DRIVER DOES NOT HAVE THE CONTROL OVER THAT DEVICE ANY MORE.
_commandID | the command ID |
_cardNo | the ID of the MPIA electronic card |
_moduleNo | the ID of the device module |
_selectID | the sub command ID |
_parameter | the parameter as string |
_numberOfLines | the number of lines that might be read |
Hi Martin,
that's exactly what I was thinking: The use case is (real example from our experience): we discover at the telescope that we need to continuously monitor a given property (PropA) of the MoCon (obviously because of a malfunctioning in the hardware!). Without this monitor, we will be stuck. You can add the required functionality in the Mocca adding the function getPropA: this requires 4 hours and the day is lost. The day after you are stuck because you discover that you miss PropB, and the day is lost again. As an alternative, one can add the 2 lines below in the code (with a comment: "1 10 0 = getPropA") and this requires 5 minutes. The day after one can add a similar line with 1 11 0. When you're back in Europe you implement getPropA and getPropB in Mocca and you cleanup the code removing the receiveResponseForComment
Generally speaking I think it is a safe idea to have a generic interface to access EVERY possible functionality of a device, because soon or later you'll need it. In the case of the Mocon it is quite easy, a good compromise between living dangerously and wasting too much time in the effort of a complete implementation of all the MoCon commands.
Lorenzo Busoni
Implements Basda::MoccaNDevice.
|
virtual |
This method send the command string to the electronic.
This method is set to public due to requests from Lorenzo Busoni. BUT THE USER OF THIS METHOD TAKE OVER THE RESPONSIBILITY OF THE CORRECT ERROR HANDLING. THE DRIVER DOES NOT HAVE THE CONTROL OVER THAT DEVICE ANY MORE.
_commandID | the command ID |
_cardNo | the ID of the MPIA electronic card |
_moduleNo | the ID of the device module |
_selectID | the sub command ID |
_parameter | the parameter as string |
_numberOfLines | the number of lines that might be read |
Hi Martin,
that's exactly what I was thinking: The use case is (real example from our experience): we discover at the telescope that we need to continuously monitor a given property (PropA) of the MoCon (obviously because of a malfunctioning in the hardware!). Without this monitor, we will be stuck. You can add the required functionality in the Mocca adding the function getPropA: this requires 4 hours and the day is lost. The day after you are stuck because you discover that you miss PropB, and the day is lost again. As an alternative, one can add the 2 lines below in the code (with a comment: "1 10 0 = getPropA") and this requires 5 minutes. The day after one can add a similar line with 1 11 0. When you're back in Europe you implement getPropA and getPropB in Mocca and you cleanup the code removing the receiveResponseForComment
Generally speaking I think it is a safe idea to have a generic interface to access EVERY possible functionality of a device, because soon or later you'll need it. In the case of the Mocon it is quite easy, a good compromise between living dangerously and wasting too much time in the effort of a complete implementation of all the MoCon commands.
Lorenzo Busoni
Implements Basda::MoccaNDevice.
|
virtual |
|
virtual |
|
virtual |
close device
Implements Basda::Device.
|
virtual |
close device
Implements Basda::Device.
|
virtual |
deactivate the device
Implements Basda::Device.
|
virtual |
deactivate the device
Implements Basda::Device.
|
virtual |
deinit the device
Implements Basda::Device.
|
virtual |
deinit the device
Implements Basda::Device.
|
virtual |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i t
It supports a direct communication with the MoCon. BUT THE USER OF THIS METHOD TAKE OVER THE RESPONSIBILITY OF THE CORRECT ERROR HANDLING. THE DRIVER DOES NOT HAVE THE CONTROL OVER THAT DEVICE ANY MORE.
Implements Basda::MoccaNDevice.
|
virtual |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i t
It supports a direct communication with the MoCon. BUT THE USER OF THIS METHOD TAKE OVER THE RESPONSIBILITY OF THE CORRECT ERROR HANDLING. THE DRIVER DOES NOT HAVE THE CONTROL OVER THAT DEVICE ANY MORE.
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current absolute encoder positions of all motors.
The current position of all motors might be stored in the property
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current absolute encoder positions of all motors.
The current position of all motors might be stored in the property
Implements Basda::MoccaNDevice.
|
virtual |
Returns the basic settings of all motors.
Depending of the implementation the basic settings could be: motion profile, revolution, velocity, acceleration, deceleration and jerk. Each basic settings is stored in a sequence.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the basic settings of all motors.
Depending of the implementation the basic settings could be: motion profile, revolution, velocity, acceleration, deceleration and jerk. Each basic settings is stored in a sequence.
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current device internal position encoder of all motors.
Some devices, like the MoCon, have an internal software encoder/position counter, which is independent from the incremental and absolute encoder.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current device internal position encoder of all motors.
Some devices, like the MoCon, have an internal software encoder/position counter, which is independent from the incremental and absolute encoder.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current incremental encoder positions of all motors.
The current position of all motors might be stored in the property
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current incremental encoder positions of all motors.
The current position of all motors might be stored in the property
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current positions of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current positions of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
The external profile will be configured and the external profile will uploaded to the MoCon.
_positionSequence | a vector with the profile for each motor |
_timeResolution | segmentLength / samplesPerSegment |
_samplesPerSegment | samples per segment |
_maxError | the maximal error that the external profile can have after the conversion to a MoCon profile |
_asynch | the call back object This method starts the external profile at a certain data. |
The external profile can be stopped with the stop method.
_date | a vector with the start date of all motors. The order of the dates is corresponding to the order of the motor names in the property tree (alphabetical). Use the constant Basda::STAY if the motor should move. |
_asynch | the call back object |
Implements Basda::MoccaNDevice.
|
virtual |
The external profile will be configured and the external profile will uploaded to the MoCon.
_positionSequence | a vector with the profile for each motor |
_timeResolution | segmentLength / samplesPerSegment |
_samplesPerSegment | samples per segment |
_maxError | the maximal error that the external profile can have after the conversion to a MoCon profile |
_asynch | the call back object This method starts the external profile at a certain data. |
The external profile can be stopped with the stop method.
_date | a vector with the start date of all motors. The order of the dates is corresponding to the order of the motor names in the property tree (alphabetical). Use the constant Basda::STAY if the motor should move. |
_asynch | the call back object |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current velocity of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current velocity of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
init the device
Implements Basda::Device.
|
virtual |
init the device
Implements Basda::Device.
|
virtual |
This method indicate whether the motor is at the home position.
_atHome | each flag in that Bitset indicate whether the motor is at home (true - motor is at home;). The order of the bits is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
This method indicate whether the motor is at the home position.
_atHome | each flag in that Bitset indicate whether the motor is at home (true - motor is at home;). The order of the bits is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current limit switch state of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the current limit switch state of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the motion flag of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
Returns the motion flag of all motors.
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
inlinevirtual |
All motors of a device move to the absolute position.
_positions | a vector containing the motor name and the absolute target position in millimeter |
Implements Basda::MoccaNDevice.
|
inlinevirtual |
All motors of a device move to the absolute position.
_positions | a vector containing the motor name and the absolute target position in millimeter |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
inlinevirtual |
All motors of a device move to the relative position.
_positions | a vector containing the motor name and the relative target position in millimeter |
Implements Basda::MoccaNDevice.
|
inlinevirtual |
All motors of a device move to the relative position.
_positions | a vector containing the motor name and the relative target position in millimeter |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
inlinevirtual |
All motors of a device move to the home position.
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the home position.
Implements Basda::MoccaDevice.
|
inlinevirtual |
Implements Basda::MoccaDevice.
|
inlinevirtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the positive limit switch.
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the positive limit switch.
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the negative limit switch.
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the negative limit switch.
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the positive limit switch.
Implements Basda::MoccaDevice.
|
inlinevirtual |
All motors of a device move to the positive limit switch.
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
Implements Basda::MoccaDevice.
|
virtual |
open device
Implements Basda::Device.
|
virtual |
open device
Implements Basda::Device.
|
virtual |
This method setup the acceleration anv velocity for a direct point to point move.
_acceleration | |
_velocity | |
_deceleration |
Implements Basda::MoccaNDevice.
|
virtual |
This method setup the acceleration anv velocity for a direct point to point move.
_acceleration | |
_velocity | |
_deceleration |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i t
It supports a direct communication with the MoCon without to parse the response. BUT THE USER OF THIS METHOD TAKE OVER THE RESPONSIBILITY OF THE CORRECT ERROR HANDLING. THE DRIVER DOES NOT HAVE THE CONTROL OVER THAT DEVICE ANY MORE.
_commandID | the command ID which is defined in the CommandIDs.h |
_cardNo | the card number |
_moduleNo | the module number |
_ret | the allocated space for the returned data |
_numberOfLines | optional: This parameter limitates how many data should be read from the Ethernet buffer. All data are read if the value is -1. |
Implements Basda::MoccaNDevice.
|
virtual |
This method was requested by Lorenzo Busoni (lbuso 02.03.2012) ni@a rcetr i.as tro.i t
It supports a direct communication with the MoCon without to parse the response. BUT THE USER OF THIS METHOD TAKE OVER THE RESPONSIBILITY OF THE CORRECT ERROR HANDLING. THE DRIVER DOES NOT HAVE THE CONTROL OVER THAT DEVICE ANY MORE.
_commandID | the command ID which is defined in the CommandIDs.h |
_cardNo | the card number |
_moduleNo | the module number |
_ret | the allocated space for the returned data |
_numberOfLines | optional: This parameter limitates how many data should be read from the Ethernet buffer. All data are read if the value is -1. |
Implements Basda::MoccaNDevice.
|
virtual |
reset the device
Implements Basda::Device.
|
virtual |
reset the device
Implements Basda::Device.
|
virtual |
Set the acceleration configuration parameter of all motors.
_acceleration | a vector with the acceleration of all motors. The order of the accelerations is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Set the acceleration configuration parameter of all motors.
_acceleration | a vector with the acceleration of all motors. The order of the accelerations is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Set the deceleration configuration parameter of all motors.
_deceleration | a vector with the deceleration of all motors. The order of the decelerations is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Set the deceleration configuration parameter of all motors.
_deceleration | a vector with the deceleration of all motors. The order of the decelerations is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Set the jerk configuration parameter of all motors.
_jerk | a vector with the jerk of all motors. The order of the jerks is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Set the jerk configuration parameter of all motors.
_jerk | a vector with the jerk of all motors. The order of the jerks is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Change the absolute position of all motors.
The motor will not move, only the absolute position will be set.
_position | a vector with the position of all motors |
Implements Basda::MoccaNDevice.
|
virtual |
Change the absolute position of all motors.
The motor will not move, only the absolute position will be set.
_position | a vector with the position of all motors |
Implements Basda::MoccaNDevice.
|
virtual |
Set the velocity configuration parameter of all motors.
_velocity | a vector with the velocity of all motors. The order of the velocities is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Set the velocity configuration parameter of all motors.
_velocity | a vector with the velocity of all motors. The order of the velocities is corresponding to the order of the motor names in the property tree (alphabetical). |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
virtual |
Implements Basda::MoccaNDevice.
|
protected |
|
protected |
|
virtual |
All motors of a device stop moving.
Implements Basda::MoccaDevice.
|
virtual |
All motors of a device stop moving.
Implements Basda::MoccaDevice.
|
virtual |
version
Implements Basda::Device.
|
virtual |
version
Implements Basda::Device.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |