<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi everybody.  We are about to release a new version of ERPLAB that contains a routine for shifting event codes to deal with these delays.  Of course, you’ll need to measure the delays, but then it will be easy to shift the codes.
<div class=""><br class="">
</div>
<div class="">Steve</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 21, 2016, at 10:04 AM, RICHARDS, JOHN <<a href="mailto:RICHARDS@mailbox.sc.edu" class="">RICHARDS@mailbox.sc.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta name="Title" content="" class="">
<meta name="Keywords" content="" class="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)" class="">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style class=""><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div bgcolor="white" lang="EN-US" link="blue" vlink="purple" class="">
<div class="WordSection1">
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">By the way, I am sure most of you must be familiar with the lag issue that EGI had with its Netstation amp.  An older version of the firmware in the amp was incorrectly calculating
 the lo-pass filter and all the points were lagged by a significant amount.  This did not show up in the EPrime-stimulus delay, but in the EGI-EPrime synch times.  The delay was significant re ERP component timing, so in this case any data that were collected
 with this machine should be adjusted.  Several people I know had moved from the older version to the newer version, and so had to adjust the delay to some data and not others.<o:p class=""></o:p></span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">I have cc’ed the support at EGI, and they can comment on this if they wish.  Also you can find info about this, I googled “EGI latency problem” and found a discussion of this,
<a href="https://sccn.ucsd.edu/pipermail/eeglablist/2015/010427.html" class="">https://sccn.ucsd.edu/pipermail/eeglablist/2015/010427.html</a> .  This has been extensively discussed elsewhere also.<o:p class=""></o:p></span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">John
<o:p class=""></o:p></span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span></div>
<div class="MsoNormal"><span style="font-size: 10pt; font-family: Consolas;" class="">***********************************************<br class="">
John E. Richards<br class="">
Carolina Distinguished Professor<br class="">
Department of Psychology<br class="">
University of South Carolina<br class="">
Columbia, SC  29208<br class="">
Dept Phone: 803 777 2079<br class="">
Fax: 803 777 9558<br class="">
Email: </span><u class=""><span style="font-size:10.0pt;font-family:Consolas;color:blue" class=""><a href="applewebdata://7FD23341-F720-46A5-97FD-B4149780F9D4/richards-john@sc.edu" class="">richards-john@sc.edu</a><br class="">
</span></u><span style="font-size: 10pt; font-family: Consolas;" class="">HTTP: <a href="http://jerlab.psych.sc.edu" class="">
jerlab.psych.sc.edu</a><br class="">
*************************************************<br class="">
</span><span style="font-size: 11pt; font-family: Calibri;" class=""><image001.png></span><span style="font-size:11.0pt;font-family:Calibri" class=""><o:p class=""></o:p></span></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span></div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in" class="">
<div class="MsoNormal"><b class=""><span style="font-family: Calibri;" class="">From:
</span></b><span style="font-family: Calibri;" class=""><<a href="mailto:erplab-request@ucdavis.edu" class="">erplab-request@ucdavis.edu</a>> on behalf of John Richards <<a href="mailto:RICHARDS@mailbox.sc.edu" class="">RICHARDS@mailbox.sc.edu</a>><br class="">
<b class="">Date: </b>Wednesday, September 21, 2016 at 11:10 AM<br class="">
<b class="">To: </b>Colin Noe <<a href="mailto:cmn2rice@gmail.com" class="">cmn2rice@gmail.com</a>>, chao wang <<a href="mailto:hnchaowang@gmail.com" class="">hnchaowang@gmail.com</a>><br class="">
<b class="">Cc: </b>EEGLAB List <<a href="mailto:eeglablist@sccn.ucsd.edu" class="">eeglablist@sccn.ucsd.edu</a>>, "<a href="mailto:erplab@ucdavis.edu" class="">erplab@ucdavis.edu</a>" <<a href="mailto:erplab@ucdavis.edu" class="">erplab@ucdavis.edu</a>><br class="">
<b class="">Subject: </b>Re: [erplab] About stimulus presentation delay<o:p class=""></o:p></span></div>
</div>
<div class="">
<div class="MsoNormal"><o:p class=""> </o:p></div>
</div>
<div class="">
<div class="">
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">Nearly everyone has a delay between the EPrime time and the time the stimulus reaches the screen.  It should be measured.  The latency depends largely on the method that your
 computer uses to send a figure in memory to the display (< 1 frame) and the latency of the display.  If you are using a “projector” then this may be a long and variable time.  A “scope” is nearly instantaneous.  We use a computer monitor with a fast display
 rate, and our lags are < ½ video frame.  For audio, we use the recommended EPRime audio code, and our delays are about 3 ms with almost no variability.</span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">If you have a constant or fairly constant lag, AND, if you are very concerned about using latency measures as a DV, then you should definitely adjust.  Otherwise, adjusting depends
 on the resolution of your ERP components.  We study the “Nc”, which is a rather slow-wave component in infants lasting from 350 to 700 ms.  So being off by < 1 frame (or even several frames) will not affect the mean or max ERP measures.  We also study the
 “N290” (an infant analog of the N170).  In this case the latency of the component is a DV in many studies, so adjusting is important.  The peak latency of the N290 is fairly variable across participants, so we could do the ERP analysis of peak ERP at peak
 latency (and mean around peak, or mean from nn to nn ms) and not be too badly off with no delay adjustment.  But since we want latency meausres also, we adjust.</span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">If you have an extremely variable lag, say greater than the resolution of the ERP component you want to study, then you are out of luck.  The avg latency lag will be the latency
 lag for NO stimulus presentation, and the ERP will be noisy.  If the variablty of the stimulus lag is too great re your EEG/ERP analysis resolution, then you should fix your display.</span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class="">John</span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size: 10pt; font-family: Consolas;" class="">***********************************************<br class="">
John E. Richards<br class="">
Carolina Distinguished Professor<br class="">
Department of Psychology<br class="">
University of South Carolina<br class="">
Columbia, SC  29208<br class="">
Dept Phone: 803 777 2079<br class="">
Fax: 803 777 9558<br class="">
Email: </span><u class=""><span style="font-size:10.0pt;font-family:Consolas;color:blue" class=""><a href="applewebdata://7FD23341-F720-46A5-97FD-B4149780F9D4/richards-john@sc.edu" class="">richards-john@sc.edu</a><br class="">
</span></u><span style="font-size: 10pt; font-family: Consolas;" class="">HTTP: <a href="http://jerlab.psych.sc.edu" class="">
jerlab.psych.sc.edu</a><br class="">
*************************************************<br class="">
</span><span style="font-size: 11pt; font-family: Calibri;" class=""><image002.png></span><o:p class=""></o:p></div>
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri" class=""> </span><o:p class=""></o:p></div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in" class="">
<div class="MsoNormal"><b class=""><span style="font-family: Calibri;" class="">From:
</span></b><span style="font-family: Calibri;" class=""><<a href="mailto:erplab-request@ucdavis.edu" class="">erplab-request@ucdavis.edu</a>> on behalf of Colin Noe <<a href="mailto:cmn2rice@gmail.com" class="">cmn2rice@gmail.com</a>><br class="">
<b class="">Date: </b>Wednesday, September 21, 2016 at 10:49 AM<br class="">
<b class="">To: </b>chao wang <<a href="mailto:hnchaowang@gmail.com" class="">hnchaowang@gmail.com</a>><br class="">
<b class="">Cc: </b>EEGLAB List <<a href="mailto:eeglablist@sccn.ucsd.edu" class="">eeglablist@sccn.ucsd.edu</a>>, "<a href="mailto:erplab@ucdavis.edu" class="">erplab@ucdavis.edu</a>" <<a href="mailto:erplab@ucdavis.edu" class="">erplab@ucdavis.edu</a>><br class="">
<b class="">Subject: </b>Re: [erplab] About stimulus presentation delay</span><o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="">
<div class="">
<div class="MsoNormal">I recognized the issue ahead of time, and programmed a delay into my marker code so that it lined up.  There is a way to move marks in the EEG though.  
<o:p class=""></o:p></div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal">As for acceptability, that is a question for the journal editors and experts in this forum.<o:p class=""></o:p></div>
</div>
</div>
<div class="MsoNormal"> <o:p class=""></o:p></div>
<div class="">
<div class="">
<div class="MsoNormal">On Tue, Sep 20, 2016 at 9:12 PM chao wang <<a href="mailto:hnchaowang@gmail.com" class="">hnchaowang@gmail.com</a>> wrote:<o:p class=""></o:p></div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt" class="" type="cite">
<div class="">
<div class="">
<div class="MsoNormal">Thanks for your quick reply! So, how do you segment data with respect to stimulus onset?<o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal">My delay is a little complex, about 60% ~ 75% are within the average +/- 5 ms. I want to use the average value to segment EEG data or shift ERP component latency. But I am not sure if this is acceptable in ERP analysis? <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal">Thanks!<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div class="MsoNormal">Chao<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
<div class="">
<div class="MsoNormal">On Wed, Sep 21, 2016 at 9:58 AM, Colin Noe <<a href="mailto:cmn2rice@gmail.com" target="_blank" class="">cmn2rice@gmail.com</a>> wrote:<o:p class=""></o:p></div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt" class="" type="cite">
<div class="">
<div class="MsoNormal">I have a jitter of +- 3 ms with mine (along with a 50 ms delay), which I assume is better than most (who likely have not checked timing).<o:p class=""></o:p></div>
</div>
<div class="">
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
<div class="">
<div class="">
<div class="MsoNormal">On Tue, Sep 20, 2016 at 8:40 PM chao wang <<a href="mailto:hnchaowang@gmail.com" target="_blank" class="">hnchaowang@gmail.com</a>> wrote:<o:p class=""></o:p></div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt" class="" type="cite">
<div class="">
<div class="MsoNormal">Hi, everyone, <o:p class=""></o:p></div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal">We're recording EEG data and we use E-Prime to present stimuli. During recording, stimuli are presented to subjects via a projector. The projector induces a delay between stimulus presentation on E-Prime computer and in front of subjects.
 We measured this delay and found that the delay was not constant across trials but instead jitters within certain range around the average. I would like to know is there a typical range of the jitter that can be accepted in ERP experiments? And in this situation,
 what should I do to segment EEG data with respect to stimulus onset? I mean, use the average delay to determine the real instant of stimulus presentation, or any other ways exist? Forgive me if my words is not clear :)<o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal">Thank you in advance!<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
<div class="">
<div class="MsoNormal">Chao<o:p class=""></o:p></div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<div class="MsoNormal"> <o:p class=""></o:p></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
--------------------------------------------------------------------<br class="">
Steven J. Luck, Ph.D.<br class="">
Director, Center for Mind & Brain<br class="">
Distinguished Professor, Department of Psychology<br class="">
University of California, Davis<br class="">
Room 109<br class="">
267 Cousteau Place<br class="">
Davis, CA 95618<br class="">
(530) 297-4424<br class="">
E-Mail: <a href="mailto:sjluck@ucdavis.edu" class="">sjluck@ucdavis.edu</a><br class="">
Web: <a href="http://mindbrain.ucdavis.edu/people/sjluck" class="">http://mindbrain.ucdavis.edu/people/sjluck</a><br class="">
Calendar: <a href="http://www.google.com/calendar/embed?src=stevenjluck%40gmail.com&ctz=America/Los_Angeles" class="">http://www.google.com/calendar/embed?src=stevenjluck%40gmail.com&ctz=America/Los_Angeles</a><br class="">
--------------------------------------------------------------------</div>
</div>
<br class="">
</div>
</body>
</html>