Logging Data

Whenever you start a stream with the local app version 0.3.0 or later, logging will automatically take place to CSV files in your application data_logs subfolder named with a uniquely formatted timestamp based on local time. Here is the behavior based on user input or automatic reconnection:

  • on start streaming, a new directory is created in the app data folder under data_logs/

  • on manual stop streaming, logging stops and file streams should be flushed

  • on start streaming after a manual stop, a new data_log subdirectory will be used

  • on automatic reconnect after an unexpected disconnect (e.g. muse turned off/on), the current data_log/ directory is used and a new one is not created

Log Directories by operating system:

  • Windows 10: C:\Users\USER\AppData\Roaming\petal_metrics\data_logs

  • Mac: ~/Library/Application Support/petal_metrics/data_logs

  • Linux: /home/USER/.config/petal_metrics/data_logs

Example logged files structure:

Directory: C:\Users\x\AppData\Roaming\petal_metrics\data_logs\2021-04-25T11_45_36-335


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        4/25/2021   9:46 PM         134966 acceleration.csv
-a----        4/25/2021   9:51 PM            127 connection_status.csv
-a----        4/25/2021   9:46 PM         702355 eeg.csv
-a----        4/25/2021   9:46 PM         135034 gyroscope.csv
-a----        4/25/2021   9:46 PM         104953 ppg.csv
-a----        4/25/2021   9:46 PM            232 telemetry.csv

muse EEG data:

id,lsl_ts,unix_ts,ch1,ch2,ch3,ch4,ch5
14808,15372.801753841666,1619350541.869,-1000,-814.94140625,-796.38671875,-785.64453125,-1000
14809,15372.803199683334,1619350541.869,-139.16015625,225.5859375,274.90234375,268.5546875,-1000

muse acceleration data:

id,lsl_ts,unix_ts,x,y,z
34279,15969.341186074205,1619351138.399,0.8920904832000001,0.4436648688,-0.496521352
34280,15969.3476838,1619351138.399,0.79498348,0.4403079328,-0.4970096336

muse gyroscope data:

id,lsl_ts,unix_ts,x,y,z
34279,15969.332205374205,1619351138.39,-41.099969599999994,-110.37999839999999,-140.7731904
34280,15969.3387031,1619351138.39,-15.6938032,-39.851344,-49.2870656

Connection status data:

id,lsl_ts,unix_ts,status
37,15969.1694144,1619351138.221,1
38,16002.7442171,1619351171.796,0

muse PPG data:

id,lsl_ts,unix_ts,ambient,ir,red
0,15969.3806639,1619351138.446,3433,19001,3
1,15969.3833866,1619351138.446,3557,19002,0

muse telemetry data:

id,lsl_ts,unix_ts,battery_level,temperature_c,fuel_gauge_voltage
70,15975.0211059,1619351144.073,70,0,3234.0000000000005
71,15985.037677,1619351154.089,70,0,3234.0000000000005

Last updated