Page 1 of 1

undefined function 'load_bcidat'

Posted: 04 Feb 2011, 08:04
by Sabrina Walter
dear all,

I get the following error message when trying to import dat-files with eeglab, although BCI2000 EEGlab-Import is installed:

eeglab error in function BCI2000import() at line 27: Undefined
command/function 'load_bcidat'.

Could you please help me with it?

Many thanks in advance,
Sabrina

Posted: 04 Feb 2011, 08:22
by mellinger
Hi Sabrina,

you need to manually add the BCI2000 tools/mex directory to your Matlab path. Then it should work.

Regards,
Juergen

Posted: 07 Feb 2011, 06:47
by Sabrina Walter
Hi Juergen,

thanks for the quick reply. I tried various matlab version since then (e.g. 7.5 and 7.7) but it still did not work. I did what you recommended and then had the other error message

'there is no load_bcidat mex for your plattform available'

similarly to the one documented in the forum here. When I tried to act like described there, at the buildmex step it failed again.

You would make me very happy, if you could help me.

Many thanks,
Sabrina

Posted: 07 Feb 2011, 08:22
by mellinger
Sabrina,

what operating system are you using? When trying the buildmex step, how does it fail?

Regards,
Juergen

Posted: 07 Feb 2011, 08:43
by Sabrina Walter
Hi Juergen,

I am using windows xp 2002, and the error message (in this case generated with matlab 7.1 and 7.5) is this:

??? Undefined variable "CXXFLAGS" or class "CXXFLAGS".

Error in ==> buildmex at 189
mex( options{:}, CXXFLAGS{:}, LDFLAGS{:}, INCLUDEPATHS{:}, DEFINES{:}, [target '.cpp'], MEXSRC{:} );

Error in ==> buildmex at 141
buildmex( options{:}, TARGETS{i} );

Thanks again,
Sabrina

Posted: 07 Feb 2011, 09:32
by mellinger
Hi Sabrina,

it appears you have an outdated version of the BCI2000 source code. Please update to the current SVN version, and try again.

Best regards,
Juergen