Can the 250Hz SD card recorded data be used for experimental analysis?
We use SanDisk microSD read160m/s write 90m/s 128G, and format it according to the document, and then get the hexadecimal raw data through experiments; Then use the unhex () function to decode the data according to the method in the forum, and then multiply it by scale_ Factor: 0.022351744455307063, can the obtained data be used for analysis?Is the SD card data reliable?
Comments
Yes the recorded SD card data is completely reliable and sampled at the full 250 Hz rate on all channels.
An easier way to convert the hex files is to use instructions here (expand section):
https://docs.openbci.com/Cyton/CytonSDCard/#converting-hex-files-in-openbci-gui
Richard @retiutut, is there an external code sample, say in C or Python, that can convert the hex files without using the old / deprecated GUI version? If not, can you point to the GUI code section that used to do the conversion?
William
OK, answering my own question. The hex conversion code is at the END of the source code file,
DataLogging.pde, in this zip archive file, link below. Clicking the link should download the zip. Look in the OpenBCI_GUI sub folder:https://codeload.github.com/OpenBCI/OpenBCI_GUI/zip/refs/tags/v4.2.0
I'm appending the source code below. As you can see, the 'Processsing' Language / IDE used by the GUI, is essentially based on Java language. So you should be able to call these functions from a Java wrapper program. OR, you could run with a small Processing wrapper.