Bio-Balance-Detector / bbd-p08-body-monitor

BBD Body Monitor is a single channel data acquisition system (DAS) to provide a bio-potential reading in the 0.25Hz - 125kHz frequency range. The main focus of the prototype is to use machine learning to detect different physical and mental states.
http://www.biobalancedetector.com
MIT License
5 stars 0 forks source link

Continue session in case of data acquisition failure #13

Open andrasfuchs opened 1 year ago

andrasfuchs commented 1 year ago

We stop and restart the session if there was a problem with the data acquisition. This is not ideal.

We should keep the session running unless there is a configuration change or the user manually stops or restarts the session. In the case of data acquisition errors we must create a new WAV file, but these files should be listed in the session file in its SegmentedData section, so that we can reconstruct the whole session even if it was interrupted.

This would give us more control, so - for example - pausing the data acquisition during a session could be implemented.

andrasfuchs commented 1 year ago

The session is now not stopped in case of an acquisition error and we can handle the error in multiple ways.

That's a good start, but the SegmentedData section management is still needs to be done.