<div>More info:  when you export a CNT file as ASCI and look in the header, the sample rate does indeed come up with all decimal points intact, so there must be a place in the CNT file header which contains the full precision of the sampling rate, mustn't there?...</div>

<div> </div>
<div> </div>
<div>for example:</div>
<div> </div>
<div>[Subject], <br>[Date], <br>[Time], <br>[Channels], 64<br>[Rate], 488.281250<br>[Type], Continuous<br>[Rows], Points<br>[Electrode Labels]<br>[      O1], [      O2],  etc</div>
<div> </div>
<div> </div>
<div> </div>
<div>Maybe the easiest solution is to resample the CNT file to a more normal sampling rate before importing to EEGlab</div>
<div><br><br> </div>
<div class="gmail_quote">On Feb 17, 2008 11:54 PM, Ross Fulham <<a href="mailto:Ross.Fulham@newcastle.edu.au">Ross.Fulham@newcastle.edu.au</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hamish,<br><br>Neuroscan CNT files store sampling rates as a 16 bit integer quantity (in Hz). So the problem with sampling rates being rounded down is occurring when you convert the data to Neuroscan, not when you import the neuroscan file into EEGLAB.<br>
<br>Ross<br><br><br><br><br>------------------------------------------------------------<br>Dr Ross Fulham<br>Research Officer<br>Room 1025, Ph: 492 46636, Fax: 492 46608<br>Centre For Mental Health Studies<br>James Fletcher Hospital<br>
Newcastle, NSW. Australia.<br><br>Functional Neuroimaging Laboratory,<br>Discipline of Psychology<br>School of Behavioural Sciences,<br>The University of Newcastle.<br><br>e-mail <a href="mailto:Ross.Fulham@newcastle.edu.au">Ross.Fulham@newcastle.edu.au</a><br>
------------------------------------------------------------<br>>>> Hamish Innes-Brown <<a href="mailto:hinnesbrown@gmail.com">hinnesbrown@gmail.com</a>> 02/15/08 4:37 PM >>><br>
<div>
<div></div>
<div class="Wj3C7c">Hi all, I am having a strange problem on importing continuous EEG where the<br>time of events (and the whole EEG) is stretched a little bit on importing<br>the data.<br><br>It's a bit of a convoluted process getting the data from a TDT system into<br>
EEGlab, what we do is this:<br><br>1) Export the channel data from the TDT tanks (to CSV files)<br>2) Read the CSV data into Neuroscan and add the events from the TDT event<br>log<br>3) Load the CNT file in to EEGlab using pop_loadcnt<br>
<br>The weird thing is that the data is all slightly "slowed down" when read<br>into EEGlab - events and EEG features are delayed in time.  I think this<br>might be a problem with how a sampling rate that's not a multiple of one is<br>
read from the CNT file.  The TDT sampling rate is 488.28125, and once read<br>into EEGlab, the EEG.srate value has dropped all the decimals and become<br>"488".<br><br>Has anyone else had problems importing data with such strange sampling<br>
rates?<br><br>I'm aware there is a direct TDT import plugin but so far I haven't been able<br>to get that to work (I think our TDT installation is missing some vital<br>parts), and we also use the Neuroscan CNT files for another parallel<br>
analysis...<br><br>Thanks.<br><br><br>-hamish-<br><br></div></div></blockquote></div><br>