EDFbrowser working with discontinuous EDF+ file

by Forrest Sheng Bao http://fsbao.net

EDFbrowser is an open source EDF Browser. EDF/EDF+ is an open file format for biomedical time series, especially EEG and ECG/EKG signal.

But, the pain is, new (version 1.08 or later) EDFbrowswer "disabled the possibility to open discontinuous files."

I consulted the author, Teunis van Beelen, and got a solution from him.

  1. Open the file mainwindow.cpp in a texteditor.
  2. Comment the lines 1293 to 1310. Put/* and */ at the beginning and end of following code
    if(edfhdr->discontinuous)
    {
     if(edfhdr->edf)
     {
       UI_Messagewindow popuperror("Error", "EDFbrowser can not show EDF+D (discontinuous) files.\n"
                                   "Convert this file to EDF+C first. You can find this converter\n"
                                   "in the Tools menu (EDF+D to EDF+C converter).");
     }
    
     if(edfhdr->bdf)
     {
       UI_Messagewindow popuperror("Error", "EDFbrowser can not show BDF+D (discontinuous) files.\n"
                                   "Convert this file to BDF+C first. You can find this converter\n"
                                   "in the Tools menu (EDF+D to EDF+C converter).");
     }
    
     free(edfhdr->edfparam);
     free(edfhdr);
     fclose(newfile);
    
     return;
    }
    Now compile the source code by executing qmake && make and you are done.

Modifying this source code and recompiling it is legal since this software is distributed under GNU GPL v 2.