mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 05:47:14 +02:00
wip
This commit is contained in:
@ -2394,6 +2394,28 @@ int stopStateMachine() {
|
|||||||
sharedMemory_unlockLocalLink();
|
sharedMemory_unlockLocalLink();
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wait for detector to send
|
||||||
|
int isTransmitting = 1;
|
||||||
|
while (isTransmitting) {
|
||||||
|
// wait for beb to send out all packets
|
||||||
|
if (Beb_IsTransmitting(&isTransmitting, send_to_ten_gig, 1) == FAIL) {
|
||||||
|
strcpy(mess, "Could not read delay counters\n");
|
||||||
|
*ret = (int)FAIL;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isTransmitting) {
|
||||||
|
printf("Transmitting...\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
LOG(logINFO, ("Detector has sent all data\n"));
|
||||||
|
|
||||||
|
if (!Beb_StopAcquisition()) {
|
||||||
|
LOG(logERROR, ("failed to stop acquisition\n"));
|
||||||
|
sharedMemory_unlockLocalLink();
|
||||||
|
return FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
sharedMemory_unlockLocalLink();
|
sharedMemory_unlockLocalLink();
|
||||||
|
|
||||||
// ensure all have same starting frame numbers
|
// ensure all have same starting frame numbers
|
||||||
|
Reference in New Issue
Block a user