Exporting .edf file

Hi!

I have been experiencing this error message when trying to export recordings to a file to be used outside of brainstorm. This is not always the case as sometime the export is completed successfully but i have not being able to identify what the problem is when the export fails.

Thank you for your help,

Lorenzo.

  1. Update Brainstorm.
    The error message you report indicates that Brainstorm is not up-do-date: in tree_callbacks.m, the function export_data.m is called at line 1466, not 1452.

  2. If you still get the same error: Could you please share an example file (as short as possible)?

    • If this is a continuous file ("Link to raw file"), you need first to make a copy of to the database (right-click > File > Copy to database)
    • Right-click on the file you want to export > File > Show in file explorer
    • Zip the selected data_...mat file and the matching channel_...mat files together
    • Upload the .zip file somewhere and post the download link here
  3. Consider NOT using the EDF format: this format not adapted to export file that have been processed in Matlab. Brainstorm/EEGLAB/FieldTrip/SPM all save their processed EEG signals in "64-bit floating point double-precision". EDF does not support this format and the data has to be converted back to "16-bit integers", causing some loss of precision, and the next program in the chain would have to reconvert it back to double values...
    Consider using the BrainVision format instead, also recommend in the BIDS specification (https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/03-electroencephalography.html), or more simply Matlab matrices.