Hi Fengji,<br><br>If I understand correctly, this is not an EEGLAB-related problem but I may be able to offer some advice. Importing behavioral data from .dat into Neuroscan is done using the "Merge task data" transform in Neuroscan EDIT, but this program is very picky about the format of the .dat file. In particular, it seems to require that the .dat file is space-delimited, not tab-delimited, like the following:<br>
<br>
 <table border="0" cellpadding="0" cellspacing="0" width="272"><colgroup><col style="width:204pt" width="272">
 </colgroup><tbody><tr style="height:12.75pt" height="17">
  <td style="height:12.75pt;width:204pt" height="17" width="272">Trial<span style>      </span>Resp<span style>    
  </span>Type<span style>     </span>Correct<span style>      </span>Latency</td>
 </tr>
 <tr style="height:12.75pt" height="17">
  <td style="height:12.75pt" height="17">-----<span style>      </span>----<span style>    
  </span>----<span style>     </span>-------<span style>      </span>-------</td>
 </tr>
 <tr style="height:12.75pt" height="17">
  <td style="height:12.75pt" height="17">1<span style>     
  </span>Button2<span style>     </span>1<span style>     </span>1<span style>     
  </span>1959.64</td>
 </tr>
 <tr style="height:12.75pt" height="17">
  <td style="height:12.75pt" height="17">2<span style>     
  </span>0<span style>     </span>5<span style>     </span>0<span style>     
  </span>0</td>
 </tr>
 <tr style="height:12.75pt" height="17">
  <td style="height:12.75pt" height="17">3<span style>     
  </span>Button2<span style>     </span>3<span style>     </span>1<span style>     
  </span>882.55</td>
 </tr>
 <tr style="height:12.75pt" height="17">
  <td style="height:12.75pt" height="17">4<span style>     
  </span>0<span style>     </span>5<span style>     </span>0<span style>     
  </span>0</td>
 </tr>
</tbody></table><br>(notice that the characters in between the columns are spaces rather than tabs.)<br><br>I'm not sure if this is the issue that's causing you to get an error, but we've had similar problems in the past and this is what we had to do.<br>
<br>Best,<br>Steve<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 2:52 AM, Fengji Geng <span dir="ltr"><<a href="mailto:kittymoonfly@gmail.com" target="_blank">kittymoonfly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span>Hello EEGlab users!</span><div><br><div>I am trying to import neuroscan .dat file, which has RT and ACC information, to previously loaded .CNT file. However, it reported "Wrong alignment of ev2 file with data". <br>


<div><div>I checked the .dat and .CNT files and they do have the same amount of events.  I am very confused and hope I could get some help from this emailist. Any information and help would be appreciated. </div><div><br>

</div>
<div>Please see the format of the .dat file here.</div><div><br></div><div><div>Protocol....=familiarite</div><div>Task........=animal/no animal</div><div>operator....=</div><div>doctor......=</div><div>referral....=</div>

<div>institution.=cerco</div><div>subject.....=clm</div><div>age.........=</div><div>sex.........=</div><div>hand........=</div><div>medications.=</div><div>class.......=</div><div>Sequence....=</div><div>SubjectType.=</div>

<div>date........=21/6/1999</div><div>time........=10:42</div><div>DataFile....=clm1ff01</div><div>Serie.......=1</div><div>Event  Resp  Type  Correct  Latency</div><div>-----  ----  ----  -------  -------</div><div>1<span style="white-space:pre-wrap">      </span>0<span style="white-space:pre-wrap">       </span>1<span style="white-space:pre-wrap">       </span>0<span style="white-space:pre-wrap">       </span>0</div>

<div>2<span style="white-space:pre-wrap"> </span>0<span style="white-space:pre-wrap">       </span>105<span style="white-space:pre-wrap">     </span>0<span style="white-space:pre-wrap">       </span>0</div>
<div>3<span style="white-space:pre-wrap"> </span>0<span style="white-space:pre-wrap">       </span>1<span style="white-space:pre-wrap">       </span>0<span style="white-space:pre-wrap">       </span>1076</div>
<div>4<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap">       </span>105<span style="white-space:pre-wrap">     </span>0<span style="white-space:pre-wrap">       </span>1076</div>
<div>5<span style="white-space:pre-wrap"> </span>0<span style="white-space:pre-wrap">       </span>3<span style="white-space:pre-wrap">       </span>1<span style="white-space:pre-wrap">       </span>744</div>
<div>6<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap">       </span>113<span style="white-space:pre-wrap">     </span>1<span style="white-space:pre-wrap">       </span>744</div>
<div>7<span style="white-space:pre-wrap"> </span>0<span style="white-space:pre-wrap">       </span>2<span style="white-space:pre-wrap">       </span>1<span style="white-space:pre-wrap">       </span>958</div>
<div>8<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap">       </span>104<span style="white-space:pre-wrap">     </span>1<span style="white-space:pre-wrap">       </span>958</div>
<div>9<span style="white-space:pre-wrap"> </span>0<span style="white-space:pre-wrap">       </span>4<span style="white-space:pre-wrap">       </span>1<span style="white-space:pre-wrap">       </span>757</div>
<div>10<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">       </span>115<span style="white-space:pre-wrap">     </span>1<span style="white-space:pre-wrap">       </span>757</div>
<div>11<span style="white-space:pre-wrap">        </span>0<span style="white-space:pre-wrap">       </span>3<span style="white-space:pre-wrap">       </span>1<span style="white-space:pre-wrap">       </span>777</div>
</div><div><br></div><div>Best,</div></div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>Fengji <br><br>
</font></span></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>
University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>