Are .csv export data in the .csv export folder updated continously?
- Peter Gamma
- Posts: 180
- Joined: Sat Jun 29, 2019 11:02 am
- Location: Switzerland
- Contact:
Are .csv export data in the .csv export folder updated continously?
or are they only updated at the end of a recording session?
Re: Are .csv export data in the .csv export folder updated continously?
Data is written constantly.
In programming there is a term called "flushing" which means the temporary write cache is synchronized with the file system making the change permanent in the case of a crash or battery failure on the device.
The Mind Monitor data writer is flushed after writing every 10,000 lines to the CSV file.
If you're a researcher and have "Recording Interval" set to "Constant", this means you're writing data at 256Hz (lines/secs) and the writer will flush approximately every 40 seconds.
If you're a meditator with the default "Recording Interval" of 1Hz, then the writer will flush approximately every 2.8 hours.
This programmed forced flushing interval is the minimum. In practice, the operating system will flush the write cache more often.
In programming there is a term called "flushing" which means the temporary write cache is synchronized with the file system making the change permanent in the case of a crash or battery failure on the device.
The Mind Monitor data writer is flushed after writing every 10,000 lines to the CSV file.
If you're a researcher and have "Recording Interval" set to "Constant", this means you're writing data at 256Hz (lines/secs) and the writer will flush approximately every 40 seconds.
If you're a meditator with the default "Recording Interval" of 1Hz, then the writer will flush approximately every 2.8 hours.
This programmed forced flushing interval is the minimum. In practice, the operating system will flush the write cache more often.
- Peter Gamma
- Posts: 180
- Joined: Sat Jun 29, 2019 11:02 am
- Location: Switzerland
- Contact:
Re: Are .csv export data in the .csv export folder updated continously?
Thanks, James. If I got it right, that is too slow for my purpose. I was looking for the easiest way to read out sensor data from the mind monitor app and the a training tracker app, and to merge data together in an Influx database.
Re: Are .csv export data in the .csv export folder updated continously?
Use the OSC streaming then. That's exactly what it's designed for
https://mind-monitor.com/FAQ.php#oscspec
https://mind-monitor.com/FAQ.php#oscspec
- Peter Gamma
- Posts: 180
- Joined: Sat Jun 29, 2019 11:02 am
- Location: Switzerland
- Contact:
Re: Are .csv export data in the .csv export folder updated continously?
it seems unfortunately there is no other option. So I am waiting for a Python-OSC to InfluxDB bridge:
viewtopic.php?f=15&t=1572
viewtopic.php?f=15&t=1572
Re: Are .csv export data in the .csv export folder updated continously?
I don't code python myself, but that should be trivial for a coder who does python.
- Peter Gamma
- Posts: 180
- Joined: Sat Jun 29, 2019 11:02 am
- Location: Switzerland
- Contact:
Re: Are .csv export data in the .csv export folder updated continously?
Good to know. Since the Matlab community deleted today my last Matlab question, which was
about post deletion, I will definitely choose Python in the future:
https://petergamma.org/arbitrary-post-d ... community/
about post deletion, I will definitely choose Python in the future:
https://petergamma.org/arbitrary-post-d ... community/
Re: Are .csv export data in the .csv export folder updated continously?
You're welcome to post here. I only delete advertising spam bot posts
- Peter Gamma
- Posts: 180
- Joined: Sat Jun 29, 2019 11:02 am
- Location: Switzerland
- Contact:
Re: Are .csv export data in the .csv export folder updated continously?
Well, then I am reassured.