Open laroque opened 5 years ago
For reference, the method I'd like to refactor is here: https://github.com/axiondarkmatterexperiment/fast_daq/blob/6cd0a1e4097bbe919865e5d7d76f89f50a8bc7c9/source/daq/ATS9462_digitizer.cc#L165
And an example of use is here: https://github.com/axiondarkmatterexperiment/fast_daq/blob/6cd0a1e4097bbe919865e5d7d76f89f50a8bc7c9/source/daq/ATS9462_digitizer.cc#L182
Possibly a digitizer library issue? I seem to be getting a
ApiDmaInProgress
error while callingAlazarAbortAsyncRead
... This doesn't make sense, the abort call is supposed to stop the "InProgress" nature of the buffers, the documentation indicates that this error comes from trying to READ a buffer that is not the correct element in the buffer FIFO.I should contact Alazar about this, maybe there's a flaw in their library or incompleteness in their documentation on the call and these errors.
In parallel, I should clean up the interface to calls to their library. The current method
ats9462_digitizer::check_return_code
takes the result of a call to the API and a string which is supposed to match the function name. It would be much better if:check_return_code
call were able to give the line number from which it has been called