Skip to content

Conversation

@jmadden173
Copy link

@jmadden173 jmadden173 commented Mar 31, 2025

Opening this PR as a proof of concept for saving measurement blocks to a csv and looking for feedback from @Comer352L on how you would want it to be implemented to complete the feature.

When you start reading measurement blocks it creates/opens a new file measurements.csv overwriting any previous data. Whenever the measurements table is updated it writes the unix epoch, time since measurement start, and the measurement blocks to the csv. When measurements stopped the file is closed.

Ideally there would a "record" or "start" button with a path input to save the csv as it writes to the directory that FreeSSM was started from.

Test on:

  • Linux 6.12.16-1-lts
  • 2004 Subaru Outback

I attached a csv taken from driving around trying to diag a P0420 code along with excerpt of the first 20 lines.

"Time";"Delta Time";"Air/Fuel Sensor #2 Lambda ()";"Air/Fuel Sensor #1 Lambda ()";"Air/Fuel Correction #2 (%)";"Air/Fuel Correction #1 (%)";"Air/Fuel Learning #2 (%)";"Air/Fuel Learning #1 (%)";"Engine Speed (rpm)";"Mass Air Flow (g/s)";"Rear O2 Sensor Voltage (V)";"Front O2 Sensor #2 Voltage (V)";"Front O2 Sensor #1 Voltage (V)"
1743384428.866000;0.184000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"665";"2.42";"0.015";"0.790";"0.790"
1743384429.017000;0.335000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"667";"2.40";"0.015";"0.790";"0.790"
1743384429.191000;0.509000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"670";"2.40";"0.015";"0.790";"0.790"
1743384429.368000;0.686000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"669";"2.44";"0.015";"0.790";"0.790"
1743384429.536000;0.854000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"671";"2.44";"0.015";"0.790";"0.785"
1743384429.701000;1.019000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"663";"2.44";"0.015";"0.790";"0.780"
1743384429.876000;1.194000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"665";"2.44";"0.015";"0.785";"0.780"
1743384430.052000;1.370000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"662";"2.44";"0.015";"0.785";"0.780"
1743384430.218000;1.536000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"667";"2.40";"0.015";"0.785";"0.780"
1743384430.385000;1.703000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"669";"2.44";"0.015";"0.785";"0.785"
1743384430.560000;1.878000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"665";"2.44";"0.015";"0.785";"0.785"
1743384430.728000;2.046000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"660";"2.44";"0.015";"0.790";"0.790"
1743384430.903000;2.220000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"667";"2.47";"0.015";"0.790";"0.790"
1743384431.072000;2.390000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"661";"2.44";"0.015";"0.795";"0.785"
1743384431.238000;2.556000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"663";"2.42";"0.015";"0.800";"0.765"
1743384431.403000;2.721000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"659";"2.44";"0.015";"0.800";"0.730"
1743384431.573000;2.891000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"658";"2.45";"0.015";"0.800";"0.680"
1743384431.742000;3.060000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"665";"2.44";"0.015";"0.805";"0.630"
1743384431.906000;3.224000;"1.00";"1.00";"0.0";"0.8";"-1.6";"-7.0";"668";"2.42";"0.015";"0.805";"0.615"

running.csv

Resolves #18 and #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for logging measurement blocks

1 participant