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

Post Reply
User avatar
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?

Post by Peter Gamma »

or are they only updated at the end of a recording session?
User avatar
James
Site Admin
Posts: 1110
Joined: Wed Jan 02, 2013 9:06 pm

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

Post 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.
User avatar
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?

Post 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.
User avatar
James
Site Admin
Posts: 1110
Joined: Wed Jan 02, 2013 9:06 pm

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

Post by James »

Use the OSC streaming then. That's exactly what it's designed for ;-)
https://mind-monitor.com/FAQ.php#oscspec
User avatar
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?

Post 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
User avatar
James
Site Admin
Posts: 1110
Joined: Wed Jan 02, 2013 9:06 pm

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

Post by James »

I don't code python myself, but that should be trivial for a coder who does python. :-)
User avatar
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?

Post 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/
User avatar
James
Site Admin
Posts: 1110
Joined: Wed Jan 02, 2013 9:06 pm

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

Post by James »

You're welcome to post here. I only delete advertising spam bot posts ;-)
User avatar
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?

Post by Peter Gamma »

Well, then I am reassured.
Post Reply