stop command: Support single (half)module stop

This commit is contained in:
2021-04-21 15:40:51 +02:00
parent 05ddc5caaf
commit d5c10aa3e7
3 changed files with 5 additions and 5 deletions

View File

@@ -1455,7 +1455,7 @@ class CmdProxy {
"\n\t[Mythen3] Starts detector readout. Status changes to TRANSMITTING "
"and automatically returns to idle at the end of readout.");
EXECUTE_SET_COMMAND_NOID(stop, stopDetector,
EXECUTE_SET_COMMAND(stop, stopDetector,
"\n\tAbort detector acquisition. Status changes "
"to IDLE or STOPPED. Goes to stop server.");

View File

@@ -697,7 +697,7 @@ void Detector::startDetectorReadout() {
pimpl->Parallel(&Module::startReadout, {});
}
void Detector::stopDetector() { pimpl->Parallel(&Module::stopAcquisition, {}); }
void Detector::stopDetector(Positions pos) { pimpl->Parallel(&Module::stopAcquisition, pos); }
Result<defs::runStatus> Detector::getDetectorStatus(Positions pos) const {
return pimpl->Parallel(&Module::getRunStatus, pos);
@@ -2092,4 +2092,4 @@ std::vector<int> Detector::getPortNumbers(int start_port) {
return res;
}
} // namespace sls
} // namespace sls