<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear Herb,<br>
      <br>
      it seems like the mex-file you are using is corrupt. Either it is
      from a corrupt download (in which case you'd need to download
      fieldtrip once more) or there is, or there is some other
      incompatibility between your windows/matlab combination that we
      have not encountered.<br>
      <br>
      Could you try downloading FieldTrip again and see whether the
      error persists? <br>
      <br>
      If it does persist, you could go to the src/ directory and type
      'mex ft_getopt.c' to re-mex the file (in Matlab). Then copy the
      mexw32 file from that folder to utilities/. This is not an optimal
      solution, because you will probably encounter similar issues with
      other mexw32 files.<br>
      If that works for you, it would be nice if you sent me (or someone
      else from the dev team) the file so that we can check whether the
      file is indeed different. <br>
      Either way, please let us know whether (and if so how) you can
      resolve the problem.<br>
      <br>
      Best,<br>
      Jörn<br>
      <br>
      On 7/17/2012 3:22 PM, Herbert J Gould (hgould) wrote:<br>
    </div>
    <blockquote
cite="mid:5306C43FAB1DB14992CDDF2D7EDB981B13A821D2@CH1PRD0410MB356.namprd04.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style type="text/css">P {
        MARGIN: 0px
}
</style>
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: x-small;">
        <p>Dear Arjen,</p>
        <p> </p>
        <p>Thank you that took care of the SPM issue but it still leaves
          the .mexw32 issue. However it now is looking for the file in a
          different location</p>
        <p> </p>
        <p>>> restoredefaultpath<br>
          >> addpath c:\FieldTrip\fieldtrip-20120715<br>
          >> ft_defaults<br>
          <font color="#ff0000">??? Invalid MEX-file
            'c:\FieldTrip\fieldtrip-20120715\utilities\ft_getopt.mexw32':
            The specified procedure could not be found.</font></p>
        <p><font color="#ff0000">.</font></p>
        <p><font color="#ff0000">Error in ==> ft_checkconfig at 71<br>
            renamed         = ft_getopt(varargin, 'renamed');</font></p>
        <p><font color="#ff0000">Error in ==> ft_definetrial at 116<br>
            cfg = ft_checkconfig(cfg, 'dataset2files', {'yes'});</font></p>
        <p><font color="#ff0000">Error in ==> tutorial1 at 8<br>
            cfg1         = ft_definetrial(cfg1);</font></p>
        <p>>> </p>
        <p> </p>
        <div style="FONT-FAMILY: Times New Roman; COLOR: #000000;
          FONT-SIZE: 16px"> </div>
        <div style="FONT-FAMILY: Times New Roman; COLOR: #000000;
          FONT-SIZE: 16px">Herb Gould</div>
        <div style="FONT-FAMILY: Times New Roman; COLOR: #000000;
          FONT-SIZE: 16px">
          <hr tabindex="-1">
          <div style="DIRECTION: ltr" id="divRpF293883"><font
              color="#000000" face="Tahoma" size="2"><b>From:</b>
              <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip-bounces@science.ru.nl">fieldtrip-bounces@science.ru.nl</a>
              [<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip-bounces@science.ru.nl">fieldtrip-bounces@science.ru.nl</a>] on behalf of Stolk, A.
              [<a class="moz-txt-link-abbreviated" href="mailto:a.stolk@fcdonders.ru.nl">a.stolk@fcdonders.ru.nl</a>]<br>
              <b>Sent:</b> Tuesday, July 17, 2012 8:04 AM<br>
              <b>To:</b> FieldTrip discussion list<br>
              <b>Subject:</b> Re: [FieldTrip] mexw files<br>
            </font><br>
          </div>
          <div>
            <div style="FONT-FAMILY: Times New Roman; COLOR: #000000;
              FONT-SIZE: 12pt">
              <p>Hi Herbert,</p>
              <p> </p>
              <p>It seems you have multiple versions of SPM on your
                path, which may confuse FieldTrip. Could you try
                inserting the commands below in the matlab command
                window, before inserting the tutorial code?</p>
              <p> </p>
              <p>Best regards,</p>
              <p>Arjen</p>
              <p> </p>
              <p>restoredefaultpath</p>
              <p>addpath C:\FieldTrip\fieldtrip-20120715</p>
              <p>ft_defaults<br>
                <br>
              </p>
              <hr id="zwchr">
              <blockquote style="BORDER-LEFT: rgb(16,16,255) 2px solid;
                PADDING-LEFT: 5px; MARGIN-LEFT: 5px">
                <b>Van: </b>"Herbert J Gould (hgould)"
                <a class="moz-txt-link-rfc2396E" href="mailto:hgould@memphis.edu"><hgould@memphis.edu></a><br>
                <b>Aan: </b><a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br>
                <b>Verzonden: </b>Dinsdag 17 juli 2012 14:36:26<br>
                <b>Onderwerp: </b>[FieldTrip] mexw files<br>
                <br>
                <style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
                <div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR:
                  #000000; FONT-SIZE: x-small">
                  <p>I have just found fieldtrip and have started to
                    work on the tutorial. I am trying to read the data
                    for subject 1 in the tutorial and recieve the
                    following error:</p>
                  <p> </p>
                  <p>cfg1         = ft_definetrial(cfg1);<br>
                    Warning: multiple versions of SPM on your path will
                    confuse FieldTrip<br>
                    <font color="#0000ff">> In
                      fieldtrip-20120715\private\warning_once at 75<br>
                        In ft_defaults at 91<br>
                        In ft_definetrial at 111<br>
                      Warning: one version of SPM is found here:
                      C:\FieldTrip\fieldtrip-20120715\external\spm2\spm.m<br>
                      > In ft_defaults at 99<br>
                        In ft_definetrial at 111<br>
                      Warning: one version of SPM is found here:
                      C:\FieldTrip\fieldtrip-20120715\external\spm8\spm.m<br>
                      > In ft_defaults at 99<br>
                    </font>  In ft_definetrial at 111<br>
                    <font color="#ff0000">??? Invalid MEX-file
                      'C:\FieldTrip\fieldtrip-20120715\src\ft_getopt.mexw32':
                      The specified procedure could not be found.</font></p>
                  <p>.</p>
                  <p>Error in ==> ft_checkconfig at 71<br>
                    renamed         = ft_getopt(varargin, 'renamed');</p>
                  <p>Error in ==> ft_definetrial at 116<br>
                    cfg = ft_checkconfig(cfg, 'dataset2files', {'yes'});</p>
                  <p> </p>
                  <p>I have checked and the .mexw32 file is there What
                    am I doing wrong?</p>
                  <p> </p>
                  <p>Herb Gould<br>
                  </p>
                </div>
                <br>
                _______________________________________________<br>
                fieldtrip mailing list<br>
                <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
                <a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour 
Centre for Cognitive Neuroimaging
Radboud University Nijmegen 
Neuronal Oscillations Group

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel:    +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
  </body>
</html>