WIP, eiger

This commit is contained in:
2020-06-30 10:55:31 +02:00
parent f1cbf49449
commit 488e0230ba
4 changed files with 7 additions and 4 deletions

View File

@ -2008,12 +2008,12 @@ int startStateMachine() {
LOG(logINFO, ("Virtual Acquisition started\n"));
return OK;
#else
LOG(logINFOBLUE, ("Starting State Machine\n"));
LOG(logINFO, ("Acquisition started bit toggled\n"));
int ret = OK, prev_flag;
// get the DAQ toggle bit
prev_flag = Feb_Control_AcquisitionStartedBit();
LOG(logINFO, ("Going to start acquisition\n"));
LOG(logINFOBLUE, ("Starting State Machine\n"));
Feb_Control_StartAcquisition();
LOG(logINFO, ("requesting images right after start\n"));

View File

@ -1773,6 +1773,9 @@ int start_state_machine(int blocking, int file_des) {
sharedMemory_setScanStatus(0);
break;
}
#ifdef EIGERD
prepareAcquisition();
#endif
ret = startStateMachine();
LOG(logDEBUG2, ("Starting Acquisition ret: %d\n", ret));
if (ret == FAIL) {

View File

@ -525,9 +525,9 @@ void Detector::startReceiver() { pimpl->Parallel(&Module::startReceiver, {}); }
void Detector::stopReceiver() { pimpl->Parallel(&Module::stopReceiver, {}); }
void Detector::startDetector() {
if (getDetectorType().squash() == defs::EIGER) {
/*if (getDetectorType().squash() == defs::EIGER) {
pimpl->Parallel(&Module::prepareAcquisition, {});
}
}*/
pimpl->Parallel(&Module::startAcquisition, {});
}