<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> fieldtrip-bounces@science.ru.nl <fieldtrip-bounces@science.ru.nl> on behalf of gao nuo <nancygao260@hotmail.com><br>
<b>Sent:</b> Monday, November 28, 2016 6:36 PM<br>
<b>To:</b> fieldtrip@science.ru.nl<br>
<b>Subject:</b> [FieldTrip] problems in emotiv fieldtrip and matlab</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Dear Sir:</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">    I want to import Emotiv headset data to matlab. I found that Fieldtrip can do this.  But I failed.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">What I did is :</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">1.  my matlab is matlab R2014a,</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">2,download the fieldtrip 20161108;</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">3. add all the files to the matlab path;</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">4. installed MinGW and set the path of the /bin in environmental variables;</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">5, turn on the emotiv headset, in the emotiv testbench, I can see the EEG signals.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">6. run buffer.exe.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">7 . run cmd.exe;</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">8. <span style="font-size:12pt">go to fieldtrip-20161108/realtime/bin/win32;</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">9. input the command line: </p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt">emotiv2ft <config-file> [hostname=localhost [port=1972 [ctrlPort=8000]]]</span><span style="font-family:'Times New Roman'; font-size:12pt"></span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt">the response is:</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt"></span></p>
<div style="display:inline-block"></div>
<p class="MsoNormal"><span style="font-family:'Times New Roman'; font-size:12.0000pt">passing hostname by a minus (-) tells the software to spawn its own buffer server on the given port</span></p>
<br>
<p></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt">10. run viewer.exe, push connect botton. but no response.</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt"><br>
</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt">I don't know what the problems is, and how can I connect the emotiv headset with the fieldtrip buffer.</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt"><br>
</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt">thanks for your reading and look forward to the suggestions.</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt"><br>
</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<span style="font-family:'Times New Roman'; font-size:12pt">best wishes.</span></p>
<p class="x_MsoNormal" align="justify" style="margin-right:0pt; margin-left:0pt; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; text-indent:23.75pt; text-align:justify; line-height:24px">
<font face="Times New Roman">Gao Nuo </font></p>
<br>
<p></p>
</div>
</div>
</div>
</div>
</body>
</html>