Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an issue with DTC::ReleaseAllBuffers ? #65

Open
pavel1murat opened this issue Jul 13, 2024 · 0 comments
Open

an issue with DTC::ReleaseAllBuffers ? #65

pavel1murat opened this issue Jul 13, 2024 · 0 comments

Comments

@pavel1murat
Copy link
Contributor

it looks that the following code snippet results in reading of only one event,
and the reads following the call to DTC::ReleaseAllBuffers return an empty vector, or "no data"

DTCLib::DTC* _dtc(...);
// .. dtc intialization omitted
bool match_ts = false;
std::vector<std::unique_ptr<DTCLib::DTC_SubEvent>> subevents;
subevents = _dtc->GetSubEventData(DTC_EventWindowTag(0) ,match_ts);
_dtc->ReleaseAllBuffers(DTC_DMA_Engine_DAQ);
for (int i=1; i<10; i++) {
  subevents = _dtc->GetSubEventData(DTC_EventWindowTag(i),match_ts);
}
@pavel1murat pavel1murat changed the title Release an issue with ReleaseAllBuffers ? Jul 13, 2024
@pavel1murat pavel1murat changed the title an issue with ReleaseAllBuffers ? an issue with DTC::ReleaseAllBuffers ? Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant