Page 1 of 1

save_bcidat question

Posted: 11 Aug 2010, 00:36
by xiaouli
Hello

in matlab the following code was written
>> save_bcidat('myfile.dat',signal, states, parameters);
??? Invalid MEX-file 'E:\bcisoft\BCI2000\tools\mex\save_bcidat.dll':

However, 'save_bcidat.dll' is in the folder.

The same problem appeared in the 'load_bcidat' calling.

I will be pleased if someone help me

Xiaouli

ask again

Posted: 19 Aug 2010, 02:47
by xiaouli
Someone said that the problem correlated with Matlab version.

My matlab is version 7.0.4.365(R14)

Posted: 31 Aug 2010, 09:22
by mellinger
Xiaouli,

we try to provide mex files that work on current Matlab releases. Unfortunately, this means that they might not work with older Matlab releases.

You will need to rebuild the mex files to work with your version of Matlab.
  • Make sure you have the Borland C++ compiler, or Visual Studio installed (it is available for free as an "Express" edition).
  • Start Matlab.
  • Change the working directory to BCI2000/src/core/tools/mex.
  • Execute "mex -setup" and choose your C++ compiler.
  • Execute "buildmex".
Now, mex files should work with your Matlab version.

Juergen