usleep between sending frames and stop acquisition assures complete frames, require firmware update to remove usleep

This commit is contained in:
maliakal_d 2021-06-16 11:11:04 +02:00
parent ceeb4400a0
commit e110bfd5a7
2 changed files with 3 additions and 2 deletions

View File

@ -999,7 +999,7 @@ int Feb_Control_StartAcquisition() {
int Feb_Control_StopAcquisition() {
if (Feb_Control_activated) {
// sends last
/* unsigned int orig_value = 0;
unsigned int orig_value = 0;
if (!Feb_Interface_ReadRegister(Feb_Control_AddressToAll(),
DAQ_REG_CTRL, &orig_value)) {
LOG(logERROR, ("Could not read DAQ_REG_CHIP_CMDS to send software "
@ -1011,7 +1011,8 @@ int Feb_Control_StopAcquisition() {
orig_value | DAQ_CTRL_STOP, 0, 0)) {
LOG(logERROR, ("Could not send last frames.\n"));
return 0;
}*/
}
usleep(100 *1000);
// stop acquisition
return Feb_Control_Reset();
}