DetectorWrapper: don't use sendSoftwareTrigger() yet

This commit is contained in:
2023-04-24 15:20:09 +02:00
parent f14693fe43
commit 7be02b1ea0

View File

@@ -164,7 +164,12 @@ void DetectorWrapper::Stop() {
void DetectorWrapper::Trigger() {
logger.Info("Trigger");
try {
det.sendSoftwareTrigger(false);
for (int i = 1; i < det.size(); i++)
det.setBit(0x4f, 2, {i});
std::this_thread::sleep_for(std::chrono::milliseconds(100));
det.setBit(0x4f, 2, {0});
std::this_thread::sleep_for(std::chrono::milliseconds(100));
det.clearBit(0x4f, 2);
} catch (std::exception &e) {
logger.ErrorException(e);
throw JFJochException(JFJochExceptionCategory::Detector, e.what());