OpenBCI_GUI icon indicating copy to clipboard operation
OpenBCI_GUI copied to clipboard

added sd-card-file-conversion script

Open Shyamal-Dharia opened this issue 1 year ago • 3 comments
trafficstars

Issue #1014 SD Card Hex to Standard Text File Conversion script.

Create a python script for sd card hex to csv file. additionally, it can also convert csv files to other formats using mne-python.

I have tested it with my sd card files and compared it with them. It works!

Also, couple of my files had analog values from photodiode sensor. It also converts those values and puts it in the last three column. Values can be distinguished by looking at graph generated from csv file from the column that had sensor values. The values ranged between 0 to 1. attached is the picture. Therefore, I think the script works for analog sensors too.

Took reference from https://github.com/roflecopter/openbci-psg for conversion.

Hope this helps!

graph

Shyamal-Dharia avatar Jan 20 '24 05:01 Shyamal-Dharia

GUI v4 files are very different from what will be GUI v6 files. Can you please download GUI v6 (beta) and try another pass at this? Awesome work so far!

retiutut avatar Jan 22 '24 02:01 retiutut

Understood. Yes, working on it will update the code as soon as possible.

Shyamal-Dharia avatar Jan 22 '24 18:01 Shyamal-Dharia

The recent code update has been tested under the following scenarios with cyton+daisy:

  1. With analog sensor values.
  2. In digital mode, where the sensor was not attached.
  3. With normal accelerometer data.

Based on my understanding, due to some limitations, the data for the following columns are not stored on the SD card: "Timestamp," "Marker Channel," and "Timestamp (Formatted)." Therefore, I was not able to use them and kept their values as zeros.

file type conversion also been tested for all three file types (.eeg, .edf, .set).

Shyamal-Dharia avatar Jan 22 '24 21:01 Shyamal-Dharia