<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Eve,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>FieldTrip handles (pretty much) all function calls to the meg-pd toolbox for you (in particular which are the appropriate input arguments to use) so you don't have to deal with these issues yourself.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>See if you can extract the header information and some data from your .fif file using </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>filename = "fullpath/name.fif"</DIV><DIV>hdr = read_fcdc_header(filename);</DIV><DIV>% hdr should be a structure</DIV><DIV>dat = read_fcdc_data(filename);</DIV><DIV>% dat should be a nchan x nsamp matrix</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>see what you get.</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><BR><DIV><DIV>On 17 Feb 2007, at 21:03, alotof eve wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Hi, experts,</DIV>  <DIV> </DIV>  <DIV>   Maybe I misunderstood the command. My MEG data is from NeuroMag 306 channels.  Does that mean I should use "Neuromag-306" as <FONT face="NimbusSanL-Bold">argument? Thanks for any suggestion.</FONT></DIV>  <DIV><FONT face="NimbusSanL-Bold"></FONT> </DIV>  <DIV><FONT face="NimbusSanL-Bold">Best,</FONT></DIV>  <DIV><FONT face="NimbusSanL-Bold">Eve</FONT></DIV><FONT face="NimbusSanL-Bold">  </FONT><DIV><FONT face="NimbusSanL-Bold"></FONT><BR><BR><B><I>alotof eve <<A href="mailto:alotof_xd@yahoo.com">alotof_xd@yahoo.com</A>></I></B> wrote:</DIV>  <BLOCKQUOTE class="replbq" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">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 <<A href="mailto:c.hesse@FCDONDERS.RU.NL">c.hesse@FCDONDERS.RU.NL</A>></I></B> wrote:  <BLOCKQUOTE class="replbq" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">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="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"><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="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"><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="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2">  <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="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"></SPAN><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN></SPAN></SPAN></DIV><BR></DIV></BLOCKQUOTE><BR>  <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.</DIV></BLOCKQUOTE><BR><DIV>  <BR class="khtml-block-placeholder"></DIV><HR size="1">No need to miss a message. <A href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail ">Get email on-the-go </A><BR>with Yahoo! Mail for Mobile. <A href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail ">Get started.</A></BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; 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 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; 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 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; 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 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; 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 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; 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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">F.C. Donders Centre for Cognitive Neuroimaging </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">P.O. Box 9101 </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">NL-6500 HB Nijmegen </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; 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></BODY></HTML>