Hi Aleksandar,
Thank you for your previous response regarding implementing a circular buffer for start_capture() to limit memory usage. I have a follow-up question about CSV file handling:
If I implement a custom circular buffer (e.g., a Queue or list subclass that overwrites old data), what happens to the CSV file generated by the capture system? Since the buffer only retains the most recent samples, but the CSV might keep growing indefinitely, how can I:
Limit the CSV file size (e.g., ~50MB) to match the circular buffer behavior?
Automatically overwrite or rotate CSV files when full (similar to the buffer)?
Is there a built-in way to control CSV writing in the HIL API, or would I need to manage this separately?