Error in loading the Nicolet EEG data

Dear Francois,

as title.
Brainstorm (latest version) slowly reads the data (header) and cannot view the EEG waveform.
The error message as follows:
Undefined function ‘getdata’ for input arguments of type ‘double’.
If necessary, i can upload the raw data (.e) for your test.

thanks in advance for your time,
FJ

Hello,

We rely on external code for reading Nicolet files, so I can’t promise I’ll be able to help, but I can try.
Please upload you file somewhere (eg. dropbox, google drive…) and send me the link as a private message (click on my face on this thread > Message). Or post the link publicly if it does not contain any sensitive data.

Thanks
Francois

Thank you for the file.

I could open it without any problem (see screen capture below).
Make sure your version of Brainstorm is up to date.
If your version of Matlab is too old to support the features in the Nicolet reader, try running the compiled version of Brainstorm (see the installation page on the website).

If you can't get this to work, please post more details about your system: operating system, Matlab version, full error message...
Francois

Thanks for your prompt reply.
I still can't open the file correctly, please find the error message.

Thanks for your help again.

I don’t understand why this is not working on your computer.
Can you try to debug this a bit?
Place a breakpoint in function in_fread_nicolet.m at line 39 (click on the left on the line), then create again the link to the Nicolet file, and open the file from the Brainstorm database explorer. The debugger should stop, at that line, and you can inspect the contents of the variable.

What does it display if you enter the following lines in your Matlab command window:
sFile.header
sFile.header.obj

Thanks
Francois

K>> sFile.header

ans =

      obj: []
nSegments: 1
  selchan: [1x115 double]
  numchan: 115

K>> sFile.header.obj

ans =

 []

It's weird. The obj is an empty matrix.

Before this line 39, try adding the following line:
sFile.header.obj = NicoletFile(sFile.filename);

Try with the debugger and check the content of the variable sFile.header.obj in the same way.

Can you please try with the compiled version of Brainstorm as well?
(create a new subject and link your Nicolet file again)