<div dir="ltr">Dear Hamed and Jason<div><br></div><div>Please write your type of machine (Win/Mac/Linux), OS version, and Matlab version.</div><div><br></div><div><span style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">>Error in runamica15 (line 743)</span><br style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">>        dattmp = fread(fid,[chans inf],'float');</span><br></div><div><br></div><div>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.</div><div><br></div><div>Jason, does it ring a bell to you?</div><div><br></div><div>Makoto</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 16, 2018 at 2:27 PM Hamed Taheri <<a href="mailto:hamedtaheri@yahoo.com">hamedtaheri@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div><div>Hello all,</div><div><br></div><div>Thanks a lot for your attention and replies.</div><div>Actually, I did all steps but I have an error I don't know how can I solve it.</div><div>I first load my .eeg file (Brain vision recorder format) channel locations, filtering and etc. then save it to make .set and .fdt files.</div><div>after that run the AMICA but I have the following error.</div><div><br></div><div><span>Found <u></u>datfile<u></u><br>Error using <u></u>fread<u></u><br>Invalid file identifier. Use <u></u>fopen<u></u> to generate a valid file identifier.<br><br>Error in runamica15 (line 743)<br>        dattmp = fread(fid,[chans inf],'float');<br><br>Error in pop_runamica (line 239)<br>    [W,S,mods] = runamica15(datfile,arglist{:});<br> <br>Error while evaluating Menu Callback.<br><br></span><div>Best Regards,</div><div>Hamed<br></div></div><div><br></div><div class="m_-4099493275059454672ydp775bc35dsignature"><div style="font-size:13px"><br></div></div></div>
        <div><br></div><div><br></div>
        
        </div><div id="m_-4099493275059454672yahoo_quoted_2422841199" class="m_-4099493275059454672yahoo_quoted">
            <div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
                
                <div>
                    On Monday, July 16, 2018, 10:28:15 PM GMT+2, Nicholas J. Dogris, Ph.D, <<a href="mailto:drdogris@neurofieldneurotherapy.com" target="_blank">drdogris@neurofieldneurotherapy.com</a>> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="m_-4099493275059454672yiv3275580726"><div><div dir="ltr">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.<div><br clear="none"></div><div>Cheers,</div><div><br clear="none"></div><div>Nick  </div></div><div class="m_-4099493275059454672yiv3275580726gmail_extra"><br clear="all"><div><div class="m_-4099493275059454672yiv3275580726gmail_signature"><div dir="ltr"><p style="font-size:small"><span style="font-size:14pt"><font face="times new roman, serif">Nicholas J. Dogris, Ph.D., BCN, QEEG-D</font></span></p><p style="font-size:small"><span>CEO & Co-Founder, NeuroField, Inc.</span></p><p style="font-size:small"><span style="font-size:14pt"><font face="times new roman, serif">California Licensed Psychologist, PSY 17334</font></span></p><p style="font-size:small"><span style="font-size:14pt"><font face="times new roman, serif">BCIA Board Certified in Neurofeedback</font></span></p><p style="font-size:small"><span style="font-size:14pt"><font face="times new roman, serif">Quantitative EEG Diplomate</font></span></p><p style="font-size:small"><a rel="nofollow" shape="rect" href="http://www.neurofield.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:14pt;color:rgb(5,99,193)"><font face="times new roman, serif">www.NeuroField.com</font></span></a></p><p style="font-size:small"><span style="font-size:14pt"><font face="times new roman, serif">Office: 760-872-4200</font></span></p><p style="font-size:small"><span style="font-size:14pt"><font face="times new roman, serif">Fax:     760-873-8007</font></span></p></div></div></div>
<br clear="none"><div class="m_-4099493275059454672yiv3275580726yqt9650246725" id="m_-4099493275059454672yiv3275580726yqt98160"><div class="m_-4099493275059454672yiv3275580726gmail_quote">On Mon, Jul 16, 2018 at 11:57 AM, Arnaud Delorme <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:arno@ucsd.edu" target="_blank">arno@ucsd.edu</a>></span> wrote:<br clear="none"><blockquote class="m_-4099493275059454672yiv3275580726gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Nick and Hamed,<br clear="none">
<br clear="none">
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).<br clear="none">
<br clear="none">
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.<br clear="none">
<br clear="none">
Z:\data\MATLAB\eeglab\plugins\ amica1.5\amica15mkl.exe Z:\data\matlab\eeglab\sample_ data\amicaout\input.param<br clear="none">
<br clear="none">
Jason, would you mind to look into this?<br clear="none">
<br clear="none">
Best wishes,<br clear="none">
<br clear="none">
Arno<br clear="none">
<div class="m_-4099493275059454672yiv3275580726HOEnZb"><div class="m_-4099493275059454672yiv3275580726h5"><br clear="none">
> On Jul 16, 2018, at 11:25 AM, Makoto Miyakoshi <<a rel="nofollow" shape="rect" href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>> wrote:<br clear="none">
> <br clear="none">
> Dear Nick and Hamed,<br clear="none">
> <br clear="none">
> > I just don’t understand how to install or use this problem.  Do you know if this will make AMICA run?<br clear="none">
> <br clear="none">
> My bad, my instruction was not complete. Let me explain it below.<br clear="none">
> This is from Makoto's preprocessing pipeline wiki page.<br clear="none">
> 3. Download and copy the following 5 items to /eeglab/plugins/amica<br clear="none">
>    -eegplugin_amica.m<br clear="none">
>    -pop_runamica.m<br clear="none">
>    -runamica15.m<br clear="none">
>    -loadmodout15.m<br clear="none">
>    -amica15mkl.exe (Windows 7/10 64-bit binary)<br clear="none">
> 4. Download and copy the following 2 items to /Windows/System32<br clear="none">
>    -fmpich2.dll (Windows DLL, save in directory with binary)<br clear="none">
>    -libiomp5md.dll (Windows DLL, save in directory with binary)<br clear="none">
> 5. Download and execute mpich2-1.4-win-x86-64.msi (for 64bit Windows) from <br clear="none">
> <a rel="nofollow" shape="rect" href="http://www.mpich.org/static/downloads/1.4/" target="_blank">http://www.mpich.org/static/ downloads/1.4/</a><br clear="none">
> 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.<br clear="none">
> I updated my instruction on this point.<br clear="none">
> <br clear="none">
> Please try it again and let us know if it works.<br clear="none">
> Thank you for your patience.<br clear="none">
> <br clear="none">
> Makoto<br clear="none">
> <br clear="none">
> <br clear="none">
> On Sun, Jul 15, 2018 at 9:09 PM Hamed Taheri <<a rel="nofollow" shape="rect" href="mailto:hamedtaheri@yahoo.com" target="_blank">hamedtaheri@yahoo.com</a>> wrote:<br clear="none">
> Hi all,<br clear="none">
> <br clear="none">
> I have the same problem and I can't solve it. <br clear="none">
> <br clear="none">
> Hamed<br clear="none">
> <br clear="none">
> <br clear="none">
> <br clear="none">
> <br clear="none">
> On Friday, July 13, 2018, 12:03:38 AM GMT+2, Nicholas J. Dogris, Ph.D, <<a rel="nofollow" shape="rect" href="mailto:drdogris@neurofieldneurotherapy.com" target="_blank">drdogris@ neurofieldneurotherapy.com</a>> wrote:<br clear="none">
> <br clear="none">
> <br clear="none">
> Dear Listmates,<br clear="none">
> <br clear="none">
> I am new to AMICA and have been trying to get it to run in EEGLab with no success.  I get the following error:<br clear="none">
> <br clear="none">
> Reference to non-existent field 'W'.<br clear="none">
> <br clear="none">
> Error in runamica15 (line 873)<br clear="none">
>     weights = mods.W(:,:,1);<br clear="none">
> <br clear="none">
> Error in pop_runamica (line 239)<br clear="none">
>     [W,S,mods] = runamica15(datfile,arglist{:}) ;<br clear="none">
>  <br clear="none">
> Error while evaluating uimenu Callback<br clear="none">
> <br clear="none">
> IF anyone knows of a solution to this problem I would be greatly appreciative.  <br clear="none">
> <br clear="none">
> Cheers,<br clear="none">
> <br clear="none">
> Nick<br clear="none">
> ______________________________ _________________<br clear="none">
> Eeglablist page: <a rel="nofollow" shape="rect" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/ eeglabmail.html</a><br clear="none">
> To unsubscribe, send an empty email to <a rel="nofollow" shape="rect" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn. ucsd.edu</a><br clear="none">
> For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" shape="rect" href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd. edu</a><br clear="none">
> ______________________________ _________________<br clear="none">
> Eeglablist page: <a rel="nofollow" shape="rect" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/ eeglabmail.html</a><br clear="none">
> To unsubscribe, send an empty email to <a rel="nofollow" shape="rect" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn. ucsd.edu</a><br clear="none">
> For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" shape="rect" href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd. edu</a><br clear="none">
> <br clear="none">
> <br clear="none">
> -- <br clear="none">
> Makoto Miyakoshi<br clear="none">
> Swartz Center for Computational Neuroscience<br clear="none">
> Institute for Neural Computation, University of California San Diego<br clear="none">
> ______________________________ _________________<br clear="none">
> Eeglablist page: <a rel="nofollow" shape="rect" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/ eeglabmail.html</a><br clear="none">
> To unsubscribe, send an empty email to <a rel="nofollow" shape="rect" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn. ucsd.edu</a><br clear="none">
> For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" shape="rect" href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd. edu</a><br clear="none">
<br clear="none">
</div></div></blockquote></div></div><br clear="none"></div></div></div></div>
            </div>
        </div></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div></div>