Hi Christian,<br><br> Yes it works. Thank you so much.<br> But now I met a new problem. I got only a whole .fif data. When I tried the command "MEGMODEL", it said any argument can be left out. However, the error showed up again: <br>>> MEGMODEL<br>??? Could not load the coil files<br><br>Error in ==> F:\MATLAB6p5\bin\win32\megmodel.dll<br> <br>I couldn't find any .fif file like Neuromag-122 or coilfile.fif. How do you settle it?<br>Thanks.<br><br>Best,<br>Eve<br><br><b><i>Christian Hesse <c.hesse@FCDONDERS.RU.NL></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Eve,<div><br class="khtml-block-placeholder"></div><div>you should be able to use the meg-pd toolbox (also from FieldTrip) in Matlab under Windows. I got the toolbox to work in Matlab7 under WindowsXP as follows:</div><div style="margin: 0px; font-family:
Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px;"><br></div><div style="margin: 0px;"> - extract the meg-pd-1.2-10.mswin.zip file to somewhere</div><div style="margin: 0px;">- then copy (or move) the meg_pd_1.2 directory wherever you want</div><div style="margin: 0px;">- in the README file in the meg-pd-1.2-10.mswin directory it specifies that you need to copy the DLL file "meg-pd-1.2-10.mswin\lib\i686-pc-cygwin\libmagnet_pd_1.2.dll" into the bin directory of Matlab on your system, in my case this was the directory "MATLAB71\bin\win32"</div><div style="margin: 0px;">- start up Matlab, add the fieldtrip and meg_pd_1.2 directories to your path and try to read your .fif file</div><div style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height:
normal; font-size-adjust: none; font-stretch: normal; min-height: 14px;"><br></div><div style="margin: 0px;">Let me know if this works on your Windows system</div><div><br class="khtml-block-placeholder"></div><div>Regards,</div><div>Christian</div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><div><div><div>On 15 Feb 2007, at 17:32, alotof eve wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi, experts,</div> <div> </div> <div> I am a new user of fieldtrip. I try to use meg-pd package to import NeuroMag data but it seems there is something wrong with the environment. <br> The error showed as:<br> Unable to load mex file: F:\MATLAB6p5\toolbox\fieldtrip-20070213\meg_pd_1.2\loadfif.dll.<br>The specified module could not be found. </div> <div> </div>
<div> The true is the .dll is in the same path as .m and the path has been add the Matlab.</div> <div> I use Latlab 6.5 under WindowXP. I don't know if it affects. I saw the "lib" in the same meg-pd package included a .dll for pc-cygwin. I wonder if I have to use Matlab under Linux/Unix environment. Or if any other limits.</div> <div> </div> <div> Please help me. Thanks.</div> <div> </div> <div>Best,</div> <div>Eve</div><div> <br class="khtml-block-placeholder"></div><hr size="1">TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.</blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size:
12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><div>----------------------------------------------------------------------</div><div>Christian Hesse, PhD, MIEEE</div><div><br class="khtml-block-placeholder"></div><div style="margin: 0px;">F.C. Donders Centre for Cognitive Neuroimaging </div><div style="margin: 0px;">P.O. Box 9101 </div><div style="margin: 0px;">NL-6500 HB Nijmegen </div><div style="margin: 0px;">The
Netherlands</div><div><br class="khtml-block-placeholder"></div><div>Tel.: +31 (0)24 36 68293</div><div>Fax: +31 (0)24 36 10989</div><div><br class="khtml-block-placeholder"></div><div>Email: <a href="mailto:c.hesse@fcdonders.ru.nl">c.hesse@fcdonders.ru.nl</a></div><div>Web: <a href="http://www.fcdonders.ru.nl">www.fcdonders.ru.nl</a></div><div>----------------------------------------------------------------------</div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"></span><br class="Apple-interchange-newline"></span></span></span></span></span>
</div><br></div></blockquote><br><p>
<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.