Page 1 of 1

Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 6:41 am
by Peter Gamma
or are they only updated at the end of a recording session?

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 10:06 am
by James
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.

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 11:52 am
by Peter Gamma
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?

Posted: Tue Mar 30, 2021 11:59 am
by James
Use the OSC streaming then. That's exactly what it's designed for ;-)
https://mind-monitor.com/FAQ.php#oscspec

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 3:26 pm
by Peter Gamma
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

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 3:35 pm
by James
I don't code python myself, but that should be trivial for a coder who does python. :-)

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 4:31 pm
by Peter Gamma
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/

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 4:39 pm
by James
You're welcome to post here. I only delete advertising spam bot posts ;-)

Re: Are .csv export data in the .csv export folder updated continously?

Posted: Tue Mar 30, 2021 4:42 pm
by Peter Gamma
Well, then I am reassured.