diff options
Diffstat (limited to 'core/acquisition.py')
| -rw-r--r-- | core/acquisition.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/acquisition.py b/core/acquisition.py index afccb56..57fda7e 100644 --- a/core/acquisition.py +++ b/core/acquisition.py @@ -102,6 +102,11 @@ class AcquisitionEngine(QObject): def get_buffer(self, device_id: str, channel_id: str) -> Optional[ChannelBuffer]: return self._buffers.get(device_id, {}).get(channel_id) + def clear_history(self): + for ch_map in self._buffers.values(): + for buf in ch_map.values(): + buf.clear() + # ── Start / stop ───────────────────────────────────────────────────── def start(self): |
