mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
fix for stopacq
This commit is contained in:
@ -998,17 +998,14 @@ int Feb_Control_StartAcquisition() {
|
|||||||
|
|
||||||
int Feb_Control_StopAcquisition() {
|
int Feb_Control_StopAcquisition() {
|
||||||
if (Feb_Control_activated) {
|
if (Feb_Control_activated) {
|
||||||
|
// stop acquisition and also sends last frame
|
||||||
if (!Feb_Interface_WriteRegister(Feb_Control_AddressToAll(),
|
if (!Feb_Interface_WriteRegister(Feb_Control_AddressToAll(),
|
||||||
DAQ_REG_CTRL, 0, 0, 0) ||
|
DAQ_REG_CTRL, DAQ_CTRL_STOP, 0, 0)) {
|
||||||
!Feb_Interface_WriteRegister(Feb_Control_AddressToAll(),
|
LOG(logERROR, ("Could not send last frames.\n"));
|
||||||
DAQ_REG_CTRL, DAQ_CTRL_STOP, 0, 0) ||
|
|
||||||
!Feb_Interface_WriteRegister(Feb_Control_AddressToAll(),
|
|
||||||
DAQ_REG_CTRL, 0, 0, 0)) {
|
|
||||||
LOG(logERROR, ("Could not reset daq, no response.\n"));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Feb_Control_WaitForFinishedFlag(5000, 0);
|
return Feb_Control_Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Feb_Control_SoftwareTrigger() {
|
int Feb_Control_SoftwareTrigger() {
|
||||||
|
Reference in New Issue
Block a user