Expanded error messageto give users the ability to help themselves
This commit is contained in:
@@ -482,9 +482,9 @@ asynStatus sinqAxis::setVeloFields(double velo, double vbas, double vmax) {
|
|||||||
"vmax=%lf.\n",
|
"vmax=%lf.\n",
|
||||||
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
|
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
|
||||||
vbas, vmax);
|
vbas, vmax);
|
||||||
setAxisParamChecked(
|
setAxisParamChecked(this, motorMessageText,
|
||||||
this, motorMessageText,
|
"Lower speed limit must not be smaller than "
|
||||||
"Lower speed limit must not be smaller than upper speed limit");
|
"upper speed limit. Please call the support.");
|
||||||
return asynError;
|
return asynError;
|
||||||
}
|
}
|
||||||
if (velo < vbas || velo > vmax) {
|
if (velo < vbas || velo > vmax) {
|
||||||
@@ -495,8 +495,10 @@ asynStatus sinqAxis::setVeloFields(double velo, double vbas, double vmax) {
|
|||||||
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
|
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
|
||||||
velo, vbas, vmax);
|
velo, vbas, vmax);
|
||||||
|
|
||||||
setAxisParamChecked(this, motorMessageText,
|
setAxisParamChecked(
|
||||||
"Speed is not inside limits");
|
this, motorMessageText,
|
||||||
|
"Speed is not inside limits. Set a new valid speed and try "
|
||||||
|
"moving. Otherwise, please call the support.");
|
||||||
return asynError;
|
return asynError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user