本文整理汇总了C++中AMBeamlineControlMoveAction::setSetpoint方法的典型用法代码示例。如果您正苦于以下问题:C++ AMBeamlineControlMoveAction::setSetpoint方法的具体用法?C++ AMBeamlineControlMoveAction::setSetpoint怎么用?C++ AMBeamlineControlMoveAction::setSetpoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AMBeamlineControlMoveAction
的用法示例。
在下文中一共展示了AMBeamlineControlMoveAction::setSetpoint方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createServoPIDEnabledAction
AMBeamlineActionItem* CLSMAXvMotor::createServoPIDEnabledAction(bool servoPIDEnabled){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(servoPIDEnabled_);
if(servoPIDEnabled)
action->setSetpoint(1);
else
action->setSetpoint(0);
return action;
}
示例2: createEncoderStepSoftRatioAction
AMBeamlineActionItem* CLSMAXvMotor::createEncoderStepSoftRatioAction(double encoderStepSoftRatio){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(encoderStepSoftRatio_);
action->setSetpoint(encoderStepSoftRatio);
return action;
}
示例3: createEncoderPercentApproachAction
AMBeamlineActionItem* CLSMAXvMotor::createEncoderPercentApproachAction(double encoderPercentApproach){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(encoderPercentApproach_);
action->setSetpoint(encoderPercentApproach);
return action;
}
示例4: createMaxRetriesAction
AMBeamlineActionItem* CLSMAXvMotor::createMaxRetriesAction(double maxRetries){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(maxRetries_);
action->setSetpoint(maxRetries);
return action;
}
示例5: createPostDeadBandAction
AMBeamlineActionItem* CLSMAXvMotor::createPostDeadBandAction(double postDeadBand){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(postDeadBand_);
action->setSetpoint(postDeadBand);
return action;
}
示例6: createEncoderMovementTypeAction
AMBeamlineActionItem* CLSMAXvMotor::createEncoderMovementTypeAction(CLSMAXvMotor::EncoderMovementType encoderMovementType){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(encoderMovementType_);
action->setSetpoint(encoderMovementType);
return action;
}
示例7: createEncoderMoveAction
AMBeamlineActionItem* CLSMAXvMotor::createEncoderMoveAction(double encoderPosition){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(encoderTarget_);
action->setSetpoint(encoderPosition);
return action;
}
示例8: createLimitActiveStateAction
AMBeamlineActionItem* CLSMAXvMotor::createLimitActiveStateAction(CLSMAXvMotor::LimitActiveState limitActiveState){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(limitActiveState_);
action->setSetpoint(limitActiveState);
return action;
}
示例9: createStepCalibrationOffsetAction
AMBeamlineActionItem* CLSMAXvMotor::createStepCalibrationOffsetAction(double stepCalibrationOffset){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(stepCalibrationOffset_);
action->setSetpoint(stepCalibrationOffset);
return action;
}
示例10: createMotorTypeAction
AMBeamlineActionItem* CLSMAXvMotor::createMotorTypeAction(CLSMAXvMotor::MotorType motorType){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(motorType_);
action->setSetpoint(motorType);
return action;
}
示例11: createEncoderCalibrationSlopeAction
AMBeamlineActionItem* CLSMAXvMotor::createEncoderCalibrationSlopeAction(double encoderCalibrationSlope){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(encoderCalibrationSlope_);
action->setSetpoint(encoderCalibrationSlope);
return action;
}
示例12: createStepAccelerationAction
AMBeamlineActionItem* CLSMAXvMotor::createStepAccelerationAction(double stepAcceleration){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(stepAcceleration_);
action->setSetpoint(stepAcceleration);
return action;
}
示例13: createStepBaseVelocityAction
AMBeamlineActionItem* CLSMAXvMotor::createStepBaseVelocityAction(double stepBaseVelocity){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(stepBaseVelocity_);
action->setSetpoint(stepBaseVelocity);
return action;
}
示例14: createEGUMoveAction
AMBeamlineActionItem* CLSMAXvMotor::createEGUMoveAction(double EGUPosition){
if(!isConnected())
return 0;
AMBeamlineControlMoveAction *action = new AMBeamlineControlMoveAction(this);
action->setSetpoint(EGUPosition);
return action;
}
示例15: beamlineInitialize
bool SGMXASScanController::beamlineInitialize(){
AMBeamlineControlMoveAction *tmpAction = 0; //NULL
AMBeamlineActionItem *tmpBAction = 0; //NULL
bool cleanupFailed = false;
cleanUpActions_ = new AMBeamlineParallelActionsList();
cleanUpActions_->appendStage(new QList<AMBeamlineActionItem*>());
tmpBAction = SGMBeamline::sgm()->scaler()->createContinuousEnableAction(SGMBeamline::sgm()->scaler()->isContinuous());
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
tmpBAction = SGMBeamline::sgm()->scaler()->createScansPerBufferAction(SGMBeamline::sgm()->scaler()->isContinuous() ? 1 : SGMBeamline::sgm()->scaler()->scansPerBuffer());
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
tmpBAction = SGMBeamline::sgm()->scaler()->createTotalScansAction(SGMBeamline::sgm()->scaler()->isContinuous() ? 1 : SGMBeamline::sgm()->scaler()->totalScans());
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
// CLSSynchronizedDwellTime *clsDwellTime = qobject_cast<CLSSynchronizedDwellTime*>(SGMBeamline::sgm()->synchronizedDwellTime());
for(int x = 0; x < SGMBeamline::sgm()->synchronizedDwellTime()->elementCount(); x++){
// tmpBAction = clsDwellTime->elementAt(x)->createEnableAction(SGMBeamline::sgm()->synchronizedDwellTime()->enabledAt(x));
//tmpBAction = SGMBeamline::sgm()->synchronizedDwellTime()->elementAt(x)->createEnableAction(SGMBeamline::sgm()->synchronizedDwellTime()->enabledAt(x));
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
}
/*
tmpBAction = SGMBeamline::sgm()->createSDD1EnableAction(SGMBeamline::sgm()->isSDD1Enabled());
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
tmpBAction = SGMBeamline::sgm()->createSDD2EnableAction(SGMBeamline::sgm()->isSDD2Enabled());
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
*/
// tmpBAction = SGMBeamline::sgm()->synchronizedDwellTime()->createMasterTimeAction(SGMBeamline::sgm()->synchronizedDwellTime()->time());
tmpBAction ? cleanUpActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
tmpAction = new AMBeamlineControlMoveAction(SGMBeamline::sgm()->fastShutterVoltage());
tmpAction->setSetpoint(SGMBeamline::sgm()->fastShutterVoltage()->value());
cleanUpActions_->appendAction(0, tmpAction);
/* NTBA - August 25th, 2011 (David Chevrier)
Who's going to delete the list and the actions?"
*/
bool initializationFailed = false;
initializationActions_ = new AMBeamlineParallelActionsList();
initializationActions_->appendStage(new QList<AMBeamlineActionItem*>());
tmpAction = new AMBeamlineControlMoveAction(SGMBeamline::sgm()->grating());
tmpAction->setSetpoint(config_->fluxResolutionGroup().controlNamed(SGMBeamline::sgm()->grating()->name()).value());
initializationActions_->appendAction(0, tmpAction);
tmpAction = new AMBeamlineControlMoveAction(SGMBeamline::sgm()->exitSlitGap());
tmpAction->setSetpoint(config_->fluxResolutionGroup().controlNamed(SGMBeamline::sgm()->exitSlitGap()->name()).value());
initializationActions_->appendAction(0, tmpAction);
bool enableSync = false;
for(int x = 0; x < config_->allDetectors()->count(); x++){
/*
if( (config_->allDetectors()->detectorAt(x) == SGMBeamline::sgm()->amptekSDD1()) || (config_->allDetectors()->detectorAt(x) == SGMBeamline::sgm()->amptekSDD2()) ){
if(config_->allDetectorConfigurations().isActiveNamed(SGMBeamline::sgm()->amptekSDD1()->detectorName()) != config_->allDetectorConfigurations().isActiveNamed(SGMBeamline::sgm()->amptekSDD2()->detectorName()))
enableSync = true;
else if(config_->allDetectorConfigurations().isActiveNamed(SGMBeamline::sgm()->amptekSDD1()->detectorName()))
enableSync = true;
else
enableSync = false;
}
else*/ if(config_->allDetectorConfigurations().isActiveAt(x)){
enableSync = true;
config_->allDetectors()->detectorAt(x)->activate();
if(config_->allDetectors()->detectorAt(x)->turnOnAction()){
// qdebug() << "Adding HV turn on to initialization actions";
initializationActions_->appendAction(0, config_->allDetectors()->detectorAt(x)->turnOnAction());
}
}
else
enableSync = false;
int syncIndex = SGMBeamline::sgm()->synchronizedDwellTimeDetectorIndex(config_->allDetectors()->detectorAt(x));
// CLSSynchronizedDwellTime *clsDwellTime = qobject_cast<CLSSynchronizedDwellTime*>(SGMBeamline::sgm()->synchronizedDwellTime());
if( (syncIndex > 1) && (SGMBeamline::sgm()->synchronizedDwellTime()->enabledAt(syncIndex) != enableSync) ){
// tmpBAction = clsDwellTime->elementAt(syncIndex)->createEnableAction(enableSync);
//tmpBAction = SGMBeamline::sgm()->synchronizedDwellTime()->elementAt(syncIndex)->createEnableAction(enableSync);
tmpBAction ? initializationActions_->appendAction(0, tmpBAction) : cleanupFailed = true;
}
}
/*
if(config_->allDetectorConfigurations().isActiveNamed(SGMBeamline::sgm()->amptekSDD1()->detectorName()))
tmpBAction = SGMBeamline::sgm()->createSDD1EnableAction(true);
else
tmpBAction = SGMBeamline::sgm()->createSDD1EnableAction(false);
tmpBAction ? initializationActions_->appendAction(0, tmpBAction) : initializationFailed = true;
if(config_->allDetectorConfigurations().isActiveNamed(SGMBeamline::sgm()->amptekSDD2()->detectorName()))
tmpBAction = SGMBeamline::sgm()->createSDD2EnableAction(true);
else
tmpBAction = SGMBeamline::sgm()->createSDD2EnableAction(false);
tmpBAction ? initializationActions_->appendAction(0, tmpBAction) : initializationFailed = true;
*/
// tmpBAction = SGMBeamline::sgm()->synchronizedDwellTime()->createMasterTimeAction(config_->regionTime(0));
tmpBAction ? initializationActions_->appendAction(0, tmpBAction) : initializationFailed = true;
tmpAction = new AMBeamlineControlMoveAction(SGMBeamline::sgm()->nextDwellTimeTrigger());
tmpAction->setSetpoint(0);
tmpAction ? initializationActions_->appendAction(0, tmpAction) : initializationFailed = true;
tmpAction = new AMBeamlineControlMoveAction(SGMBeamline::sgm()->nextDwellTimeConfirmed());
//.........这里部分代码省略.........