AcquisitionDevice: Set cancel data collection bit before starting new data collection

This commit is contained in:
2023-05-27 21:54:36 +02:00
parent 72cdb88c0c
commit effcd2d2b7
3 changed files with 13 additions and 5 deletions
+2
View File
@@ -80,6 +80,8 @@ void AcquisitionDevice::PrepareAction(const DiffractionExperiment &experiment) {
}
void AcquisitionDevice::StartAction(const DiffractionExperiment &experiment) {
HW_SetCancelDataCollectionBit();
if (!HW_IsIdle())
throw(JFJochException(JFJochExceptionCategory::AcquisitionDeviceError,
"Hardware action running prior to start of data acquisition"));