Currently, there are several limitations:
1) ring buffer from pyTrigger generates an array of zeros for the whole measurement duration
2) periodic saving loads ALL data, appends new data and saves data
3) Core class does not know if one of the acquisition threads received an error and has been stopped
How to solve the limitations:
1)
ring buffer should only contain a few samples, just enough that trigger events can be captured
pyTrigger should have an additional array to which all data is appended after the ring buffer is full OR
maybe data could be appended to the array right away.
The array with all measured data, should be emptied with periodic saving
2)
periodic saving (and save_measurements() method) should save data as a file format, with which a minimal amount of data is loaded and data efficiently appended. GPT4 suggested library "h5py"
3)
in case some of the threads are unexpectedly stopped (they receive an error), stop the whole acquisition.
Currently, there are several limitations: 1) ring buffer from pyTrigger generates an array of zeros for the whole measurement duration 2) periodic saving loads ALL data, appends new data and saves data 3) Core class does not know if one of the acquisition threads received an error and has been stopped
How to solve the limitations: 1)