[Eeglablist] AMICA Error Please Advise
Hamed Taheri
hamedtaheri at yahoo.com
Thu Jul 19 02:01:45 PDT 2018
Dear Jason,
I've first reinstalled the AMICA and put two .dll files in the AMICA1.5 folder. Then downloaded the Memorze.fdt and copied and saved the amicadefs.param in a text file and changed .txt to .param because the amicadefs.param is not downloadable.
Now in my AMICA1.5 folder I have 13 files.
(amica15c, amica15mac, amica15mkl.exe, amica15ub, amicadefs.param, eeg_loadamica.m, eegplugin_amica.m, fmpich2.dll, libiomp5md.dll, loadmodout15.m, Memorize.fdt, pop_runamica.m, runamica15.m)
After that ran the cmd.exe for running the amica15mkl.exe amicadefs.param. I've used the following directory for running two mentioned files.
I wrote amica15mkl.exe and amicadefs.param respectively with a space between them.
E:\eeglab1412b\plugins\AMICA1.5>amica15mkl.exe amicadefs.param
But I have the application error.The application was unable to start correctly (0xc000007b). Click OK to close the application.
Hamed
On Thursday, July 19, 2018, 12:00:49 AM GMT+2, Jason Palmer <japalmer29 at gmail.com> wrote:
Also you may need to uninstall and reinstall the amica plugin extension after moving eeglab.
On Thu, Jul 19, 2018, 6:15 AM Jason Palmer <japalmer29 at gmail.com> wrote:
If you run cmd.exe, change to the amica plugin directory, make sure the dlls and Memorze.fdt and amicadefs.param are in the directory, and run
amica15mkl.exe amicadefs.param
And let me know if it works or there is an error.
The files can be downloaded from
https://sccn.ucsd.edu/~jason/amica_web.html
On Thu, Jul 19, 2018, 5:14 AM Jason Palmer <japalmer29 at gmail.com> wrote:
Can you try running the amica binary with the amicadefs.param argument and test data from the windows command line (cmd.exe) as described on the amica webpage? Looks like the binary is not running and it is returning immediately ...
On Thu, Jul 19, 2018, 5:09 AM Hamed Taheri <hamedtaheri at yahoo.com> wrote:
Just to let you know, after changing the directory some lines of the error removed.
The new error:
Found datfile
A subdirectory or file E:\Test\atest\amicaout\ already exists.
No gm present, setting num_models to 1
No W present, exiting
Reference to non-existent field 'W'.
Error in runamica15 (line 873)
weights = mods.W(:,:,1);
Error in pop_runamica (line 239)
[W,S,mods] = runamica15(datfile,arglist{:});
Error while evaluating Menu Callback.
On Wednesday, July 18, 2018, 10:03:32 PM GMT+2, Hamed Taheri <hamedtaheri at yahoo.com> wrote:
Yes, I removed the previous path and added the new path.
On Wednesday, July 18, 2018, 10:01:19 PM GMT+2, Jason Palmer <japalmer29 at gmail.com> wrote:
Did you restart eeglab from the new path? It is trying to run Amica from c:\program files ...
On Thu, Jul 19, 2018, 4:55 AM Hamed Taheri <hamedtaheri at yahoo.com> wrote:
I've changed the eeglab directory to the following path: E:\eeglabBut I have the same error as before.
Found datfile
A subdirectory or file E:\Test\atest\amicaout\ already exists.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
No gm present, setting num_models to 1
No W present, exiting
Reference to non-existent field 'W'.
Error in runamica15 (line 873)
weights = mods.W(:,:,1);
Error in pop_runamica (line 239)
[W,S,mods] = runamica15(datfile,arglist{:});
Error while evaluating Menu Callback.
Hamed
On Wednesday, July 18, 2018, 9:42:19 PM GMT+2, Jason Palmer <japalmer29 at gmail.com> wrote:
It looks like the problem might be that your eeglab directory is under "program files" which has a space. Can you try moving eeglab directory (and Amica plug-in) to a path with no spaces?
On Thu, Jul 19, 2018, 4:00 AM Hamed Taheri <hamedtaheri at yahoo.com> wrote:
Dear Jason,
Unfortunately, I've checked all of the possible mistakes but it doesn't work. Just for sure I want to share my system and files information.1- I'm using windows7 64. Matlab 2017b.
2- my amica folder name is AMICA1.5. There are 6 files in the folder (amica15mkl.exe, eeg_loadamica.m, eegplugin_amica.m, loadmodout15.m, pop_runamica.m and runamica15.m).
3- I've copied two fmpich2.dll and libiomp5md.dll files in C:\Windows\System32
4- I've downloaded and installed mpich2-1.4-win-x86-64.msi
5- my EEG signals format is .eeg
6- I did pre-processing steps and then save .set file after that I ran the AMICA with the saved .set file.
( In File: E:\Test\atest\aaaaa.fdt Out Directory: E:\Test\atest\amicaout ). I didn't use characters in the file path.I've tried to change something maybe it works . for example running the MATLAB as administrator, changing the Matlab directory to the folder which .set files are there, changing the Matlab directory to AMICA1.5 folder, copying two .dll files in the AMICA1.5 folder, copying amica15mkl.exe to system32.
but the result was the same. ( The following error)
Found datfile
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
No gm present, setting num_models to 1
No W present, exiting
Reference to non-existent field 'W'.
Error in runamica15 (line 873)
weights = mods.W(:,:,1);
Error in pop_runamica (line 239)
[W,S,mods] = runamica15(datfile,arglist{:});
Error while evaluating Menu Callback.
I really don't know how what is my mistake or what is the problem?In the Makoto's preprocessing pipeline written fmpich2.dll (Windows DLL, save in directory with binary) I would like to know what does it mean "with binary ", in 'save in directory with binary' sentence. I've just copied that two .DLL files and pasted in the system32 folder.
Hamed
On Wednesday, July 18, 2018, 2:39:08 AM GMT+2, Jason Palmer <japalmer29 at gmail.com> wrote:
I haven't seen this exact error before ... But many people have had errors when they try to use a file name or path with spaces. Amica won't allow spaces in path or file name (which Windows does e.g.). Hamed can you confirm there are no spaces in the name or path?
On Wed, Jul 18, 2018, 7:16 AM Makoto Miyakoshi <mmiyakoshi at ucsd.edu> wrote:
Dear Hamed and Jason
Please write your type of machine (Win/Mac/Linux), OS version, and Matlab version.
>Error in runamica15 (line 743)
> dattmp = fread(fid,[chans inf],'float');
I'm not very sure if it is related, but from my experience, sometimes I needed to feed data by specifying fullpath of .fdt file instead of feeding Matlab variable directly to the function input. I still don't what what was wrong, but it was the only solution for me so I did so in some time in the past. I wonder if you want to try it from Matlab command line if you can.
Jason, does it ring a bell to you?
Makoto
On Mon, Jul 16, 2018 at 2:27 PM Hamed Taheri <hamedtaheri at yahoo.com> wrote:
Hello all,
Thanks a lot for your attention and replies.Actually, I did all steps but I have an error I don't know how can I solve it.I first load my .eeg file (Brain vision recorder format) channel locations, filtering and etc. then save it to make .set and .fdt files.after that run the AMICA but I have the following error.
Found datfile
Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in runamica15 (line 743)
dattmp = fread(fid,[chans inf],'float');
Error in pop_runamica (line 239)
[W,S,mods] = runamica15(datfile,arglist{:});
Error while evaluating Menu Callback.
Best Regards,Hamed
On Monday, July 16, 2018, 10:28:15 PM GMT+2, Nicholas J. Dogris, Ph.D, <drdogris at neurofieldneurotherapy.com> wrote:
Thank you for the kind assistance and walking me through the process. Your suggestions worked and I was able to run AMICA perfectly. I really appreciate the help.
Cheers,
Nick
Nicholas J. Dogris, Ph.D., BCN, QEEG-D
CEO & Co-Founder, NeuroField, Inc.
California Licensed Psychologist, PSY 17334
BCIA Board Certified in Neurofeedback
Quantitative EEG Diplomate
www.NeuroField.com
Office: 760-872-4200
Fax: 760-873-8007
On Mon, Jul 16, 2018 at 11:57 AM, Arnaud Delorme <arno at ucsd.edu> wrote:
Dear Nick and Hamed,
This is using the Amica plugin from the EEGLAB plugin manager right? (EEGLAB menu File > Manage extension > Data process extension). After downloading the plugin, there is a new menu “Run AMICA” in the Tool menu of EEGLAB. I have just tried it again from Mac OSx High Sierra (Matlab 2018a) and it works like a charm. I used the EEGLAB tutorial dataset eeglab_data_epochs_ica.set (in the sample_data folder).
I did try on Windows 7 (Matlab 2017b) and got the same error as you did though. The issue is that the file amica15mkl.exe returns instantaneously.
Z:\data\MATLAB\eeglab\plugins\ amica1.5\amica15mkl.exe Z:\data\matlab\eeglab\sample_ data\amicaout\input.param
Jason, would you mind to look into this?
Best wishes,
Arno
> On Jul 16, 2018, at 11:25 AM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu> wrote:
>
> Dear Nick and Hamed,
>
> > I just don’t understand how to install or use this problem. Do you know if this will make AMICA run?
>
> My bad, my instruction was not complete. Let me explain it below.
> This is from Makoto's preprocessing pipeline wiki page.
> 3. Download and copy the following 5 items to /eeglab/plugins/amica
> -eegplugin_amica.m
> -pop_runamica.m
> -runamica15.m
> -loadmodout15.m
> -amica15mkl.exe (Windows 7/10 64-bit binary)
> 4. Download and copy the following 2 items to /Windows/System32
> -fmpich2.dll (Windows DLL, save in directory with binary)
> -libiomp5md.dll (Windows DLL, save in directory with binary)
> 5. Download and execute mpich2-1.4-win-x86-64.msi (for 64bit Windows) from
> http://www.mpich.org/static/ downloads/1.4/
> Among the above steps, in the Step 5, you have to execute the downloaded file. As long as you choose the right version for your OS, it should work.
> I updated my instruction on this point.
>
> Please try it again and let us know if it works.
> Thank you for your patience.
>
> Makoto
>
>
> On Sun, Jul 15, 2018 at 9:09 PM Hamed Taheri <hamedtaheri at yahoo.com> wrote:
> Hi all,
>
> I have the same problem and I can't solve it.
>
> Hamed
>
>
>
>
> On Friday, July 13, 2018, 12:03:38 AM GMT+2, Nicholas J. Dogris, Ph.D, <drdogris@ neurofieldneurotherapy.com> wrote:
>
>
> Dear Listmates,
>
> I am new to AMICA and have been trying to get it to run in EEGLab with no success. I get the following error:
>
> Reference to non-existent field 'W'.
>
> Error in runamica15 (line 873)
> weights = mods.W(:,:,1);
>
> Error in pop_runamica (line 239)
> [W,S,mods] = runamica15(datfile,arglist{:}) ;
>
> Error while evaluating uimenu Callback
>
> IF anyone knows of a solution to this problem I would be greatly appreciative.
>
> Cheers,
>
> Nick
> ______________________________ _________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/ eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn. ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd. edu
> ______________________________ _________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/ eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn. ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd. edu
>
>
> --
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
> ______________________________ _________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/ eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn. ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd. edu
--
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
_______________________________________________
Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180719/af5f5fbe/attachment.html>
More information about the eeglablist
mailing list