@@ -1190,6 +1190,43 @@ asynStatus SpecsAnalyser::validateSpectrum()
11901190 return status;
11911191}
11921192
1193+ asynStatus SpecsAnalyser::defineSpectrumLVS ()
1194+ {
1195+ static const char *functionName = " SpecsAnalyser::defineSpectrumLVS" ;
1196+
1197+ asynStatus status = asynSuccess;
1198+ std::stringstream command;
1199+ std::string response = " " ;
1200+ std::map<std::string, std::string> data;
1201+ double dvalue = 0.0 ;
1202+ int ivalue = 0 ;
1203+
1204+ command << SPECS_CMD_DEFINE_LVS << " " ;
1205+ getDoubleParam (SPECSStart_, &dvalue);
1206+ command << " Start:" << dvalue << " " ;
1207+ getDoubleParam (SPECSEnd_, &dvalue);
1208+ command << " End:" << dvalue << " " ;
1209+ getDoubleParam (SPECSStepWidth_, &dvalue);
1210+ command << " StepWidth:" << dvalue << " " ;
1211+ getDoubleParam (SPECSKineticEnergy_, &dvalue);
1212+ command << " KinEnergy:" << dvalue << " " ;
1213+ getDoubleParam (ADAcquireTime, &dvalue);
1214+ command << " DwellTime:" << dvalue << " " ;
1215+ getDoubleParam (SPECSPassEnergy_, &dvalue);
1216+ command << " PassEnergy:" << dvalue << " " ;
1217+ getIntegerParam (SPECSLensMode_, &ivalue);
1218+ command << " LensMode:\" " << lensModes_[ivalue] << " \" " ;
1219+ getIntegerParam (SPECSScanRange_, &ivalue);
1220+ command << " ScanRange:\" " << scanRanges_[ivalue] << " \" " ;
1221+ getIntegerParam (SPECSScanVariable_, &ivalue);
1222+ command << " ScanVariable:\" " << scanVariable_[ivalue] << " \" " ;
1223+
1224+ debug (functionName, " Sending command" , command.str ());
1225+
1226+ status = sendSimpleCommand (command.str (), &data);
1227+ return status;
1228+ }
1229+
11931230/* *
11941231 * Send the start command to the analyser
11951232 */
0 commit comments