MatlabSignalProcessing
-
mumair
- Posts: 5
- Joined: 26 Jun 2013, 16:29
MatlabSignalProcessing
I am using windows vista 32 bit, Matlab 7.10.0 (R2010A) 32-bit as well.
When I launch BCI2000 with the following
Signal Source: SingnalGenerator
Signal Processing: MatlabSignalProcessing
Application: FeedbackDemo
I get the following:
2013-08-18T20:39:53 - BCI2000 Started
2013-08-18T20:39:53 - MatlabFilter::Constructor: Unhandled Win32 exception 0xc0000005: ACCESS_VIOLATION
Terminating SignalProcessing module.
2013-08-18T20:39:53 - Waiting for configuration ...
2013-08-18T20:39:53 - Waiting for configuration ...
can you please help me regarding this error? Thank You
When I launch BCI2000 with the following
Signal Source: SingnalGenerator
Signal Processing: MatlabSignalProcessing
Application: FeedbackDemo
I get the following:
2013-08-18T20:39:53 - BCI2000 Started
2013-08-18T20:39:53 - MatlabFilter::Constructor: Unhandled Win32 exception 0xc0000005: ACCESS_VIOLATION
Terminating SignalProcessing module.
2013-08-18T20:39:53 - Waiting for configuration ...
2013-08-18T20:39:53 - Waiting for configuration ...
can you please help me regarding this error? Thank You
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
I just tried running BCI2000/batch/MatlabDemo_SignalGenerator.bat and had a similar outcome.
Then I downloaded the latest from SVN, recompiled, and encountered a different error that seemed to be related to me having 64-bit Matlab. But you have 32-bit Matlab, so maybe you won't have that problem. Thus, I suggest you try updating to the latest source code and recompiling.
Then I downloaded the latest from SVN, recompiled, and encountered a different error that seemed to be related to me having 64-bit Matlab. But you have 32-bit Matlab, so maybe you won't have that problem. Thus, I suggest you try updating to the latest source code and recompiling.
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
*EDIT*
It works. I already had "C:\Program Files\Matlab\R2012a\bin" in the path but I had to add "C:\Program Files\Matlab\R2012a\bin\amd64". That change + compiling the relevant modules for 64-bit solved it for me.
It works. I already had "C:\Program Files\Matlab\R2012a\bin" in the path but I had to add "C:\Program Files\Matlab\R2012a\bin\amd64". That change + compiling the relevant modules for 64-bit solved it for me.
-
mumair
- Posts: 5
- Joined: 26 Jun 2013, 16:29
Re: MatlabSignalProcessing
you are referring to the Matlab current folder path right ? should matlab be running before i start BCI2000 with the MatlabSignalProcessing ?
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
Hi mumair,
Have you seen the MatlabFilter tutorial on the BCI2000 wiki?
http://www.bci2000.org/wiki/index.php/U ... tlabFilter
The steps to get the MatlabSignalProcessing module to work are the following:
Once you know you can get the module to work with the demo matlab functions, it is time to write your own.
Copy the BCI2000\prog\matlab folder somewhere else. Edit the files as needed. Copy the batch file to the same location with a new name. Edit the batch file so that the --MatlabWD flag points to the directory containing your newly edited matlab scripts.
Refer to http://www.bci2000.org/wiki/index.php/P ... tlabFilter for instructions on how to edit the Matlab files.
-Chad
Have you seen the MatlabFilter tutorial on the BCI2000 wiki?
http://www.bci2000.org/wiki/index.php/U ... tlabFilter
The steps to get the MatlabSignalProcessing module to work are the following:
- Make sure the folder containing the matlab executable and matlab's libeng.dll is added to the system path.
- For you, this will be something like "C:\Program Files\MATLAB\R2010a\bin\win32"
If you need help modifying the path: http://www.computerhope.com/issues/ch000549.htm
Then run BCI2000\batch\MatlabDemo_SignalGenerator.bat - For you, this will be something like "C:\Program Files\MATLAB\R2010a\bin\win32"
Once you know you can get the module to work with the demo matlab functions, it is time to write your own.
Copy the BCI2000\prog\matlab folder somewhere else. Edit the files as needed. Copy the batch file to the same location with a new name. Edit the batch file so that the --MatlabWD flag points to the directory containing your newly edited matlab scripts.
Refer to http://www.bci2000.org/wiki/index.php/P ... tlabFilter for instructions on how to edit the Matlab files.
-Chad
-
mumair
- Posts: 5
- Joined: 26 Jun 2013, 16:29
Re: MatlabSignalProcessing
Thank you so much chad ... i will definitely try this and post again if i face any problem ..
-
sanbelluzo
- Posts: 9
- Joined: 23 Jan 2013, 17:06
Re: MatlabSignalProcessing
Hi!!
How r u?? I've read your post beacuse i have the same problem with Matlab and BCI2000, i have Matlab 64bits. I've done everything that u said but it still doesn't work!!
I have some questions about it, where should i call the "MatlabDemo_SignalGenerator"?? from the Matlab command window?? wich comand should i use, "run"??
Pls anyone can help me??
Thx!!
How r u?? I've read your post beacuse i have the same problem with Matlab and BCI2000, i have Matlab 64bits. I've done everything that u said but it still doesn't work!!
I have some questions about it, where should i call the "MatlabDemo_SignalGenerator"?? from the Matlab command window?? wich comand should i use, "run"??
Pls anyone can help me??
Thx!!
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
BCI2000\batch\MatlabDemo_SignalGenerator.bat is a Windows batch file. You run it by double-clicking on its icon, or by executing it from a Windows Command Prompt.
-
sanbelluzo
- Posts: 9
- Joined: 23 Jan 2013, 17:06
Re: MatlabSignalProcessing
Hi!! thx!! but it still doesn't work. I got it the first time, but how that didn't work i thought that i had to open it in matlab console.
So what can i do?? the error is:
MatlabFilter::Constructor: Unhandled Win32 exception 0xc0000005: ACCESS_VIOLATION
Terminating SignalProcessing module.

So what can i do?? the error is:
MatlabFilter::Constructor: Unhandled Win32 exception 0xc0000005: ACCESS_VIOLATION
Terminating SignalProcessing module.
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
I had the same error but I got around it by downloading the latest source code from the SVN, then building and compiling for release 64-bit.
Here is a quick intro to that process:
http://www.bci2000.org/wiki/index.php/P ... tart_Guide
Download the source code.
Download and install the latest CMake.
Download and install Visual Studio 2008 (Express Edition is OK but it requires some hacking to work with 64-bit).
Run BCI2000\build\Make VS2008 Win64 Project Files.cmd
Open BCI2000\build\BCI2000.sln
At the top change "Debug 64" to "Release 64".
On the left find MatlabSignalProcessing. Right click on it and build.
(How to hack VS2008 Express for 64-bit: http://wiki.blender.org/index.php/Dev:2 ... 08_Express. Stop immediately before "Final Step")
Here is a quick intro to that process:
http://www.bci2000.org/wiki/index.php/P ... tart_Guide
Download the source code.
Download and install the latest CMake.
Download and install Visual Studio 2008 (Express Edition is OK but it requires some hacking to work with 64-bit).
Run BCI2000\build\Make VS2008 Win64 Project Files.cmd
Open BCI2000\build\BCI2000.sln
At the top change "Debug 64" to "Release 64".
On the left find MatlabSignalProcessing. Right click on it and build.
(How to hack VS2008 Express for 64-bit: http://wiki.blender.org/index.php/Dev:2 ... 08_Express. Stop immediately before "Final Step")
-
sanbelluzo
- Posts: 9
- Joined: 23 Jan 2013, 17:06
Re: MatlabSignalProcessing
Wow!!
Well i have work to do lol!
Thx boulay!! I'll try it and then i'll let u know how it goes.
Bye!!
Well i have work to do lol!
Thx boulay!! I'll try it and then i'll let u know how it goes.
Bye!!
-
sanbelluzo
- Posts: 9
- Joined: 23 Jan 2013, 17:06
Re: MatlabSignalProcessing
Hi!!
I have some troubles with the installation, i have the following error:
There is no precompiled version of Qt available for your platform/compiler.
You will need to install Qt >=4.7.0 on your machine in order to build BCI2000.
CMake Error at cmake/Utils.cmake:81 (MESSAGE):
There is no precompiled version of Qt available for your platform/compiler.
You will need to install Qt >=4.7.0 on your machine in order to build
BCI2000.
Call Stack (most recent call first):
cmake/FindQt.cmake:161 (UTILS_FATAL_ERROR)
cmake/Utils.cmake:88 (INCLUDE)
CMakeLists.txt:22 (UTILS_INCLUDE)
Configuring incomplete, errors occurred!
Where should i find that qt-file??
thx!!
I have some troubles with the installation, i have the following error:
There is no precompiled version of Qt available for your platform/compiler.
You will need to install Qt >=4.7.0 on your machine in order to build BCI2000.
CMake Error at cmake/Utils.cmake:81 (MESSAGE):
There is no precompiled version of Qt available for your platform/compiler.
You will need to install Qt >=4.7.0 on your machine in order to build
BCI2000.
Call Stack (most recent call first):
cmake/FindQt.cmake:161 (UTILS_FATAL_ERROR)
cmake/Utils.cmake:88 (INCLUDE)
CMakeLists.txt:22 (UTILS_INCLUDE)
Configuring incomplete, errors occurred!
Where should i find that qt-file??
thx!!
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
What operating system are you using?
-
sanbelluzo
- Posts: 9
- Joined: 23 Jan 2013, 17:06
Re: MatlabSignalProcessing
Hi! My OS is Windows 7 64 bit. 
I've downloaded:
- BCI2000
- Tortoise, and updated the BCI2000 files
- cmake-2.8.11.2, but it has no .exe; then i've downloaded cmake-2.8.11.2-win32-x86 (this is the part, i think i'm wrong with..
)
- Visual Studio 2008 Professional Edition
I've downloaded:
- BCI2000
- Tortoise, and updated the BCI2000 files
- cmake-2.8.11.2, but it has no .exe; then i've downloaded cmake-2.8.11.2-win32-x86 (this is the part, i think i'm wrong with..
- Visual Studio 2008 Professional Edition
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: MatlabSignalProcessing
Using a 32-bit CMake should be fine.
Hmmm, I'm not sure what the problem could be. When I run BCI2000\build\Make VS2008 Win64 Project Files.cmd on my Win 7 x64 system, it automatically downloads Qt for me. Try again. If it still doesn't work, then send me a PM with your e-mail address and I'll try to get you the file directly.
Hmmm, I'm not sure what the problem could be. When I run BCI2000\build\Make VS2008 Win64 Project Files.cmd on my Win 7 x64 system, it automatically downloads Qt for me. Try again. If it still doesn't work, then send me a PM with your e-mail address and I'll try to get you the file directly.
Who is online
Users browsing this forum: No registered users and 0 guests
