<div dir="ltr"><div>Hi Sally,</div><div><br></div>Once you set the timing mode to cumulative, E-Prime will try to 'fix' any delays by modifying onsets and durations on the fly. So, that explains why the timing issue disappears when you change the timing mode to something else. However, be aware that the actual 'problem' is caused by a long execution time of the inline. You will still have large OnsetDelay values for the fixation of about 5 seconds. As I indicated before, you can solve this by setting the duration of the slider to the full 5 seconds and execute the inline during this period by setting the pre-release also to 5 seconds. This will 'reserve' about 5 seconds of execution time for the inline without any timing issues. (But again, if the response window has a variabe duration, you should use the custom timing mode.)<div>
<br></div><div>The atached two EP (version 1) scripts will demonstrate this for event and cumulative mode. The scripts can also be loaded in EP version 2. A typical debug output is as follows:</div><div><br></div><div><div>
Slide1.OnsetTime: 6374</div><div>Start inline time : 6375</div><div>current inline time : 7376</div><div>current inline time : 8377</div><div>current inline time : 9377</div><div>current inline time : 10378</div><div>Exit inline time : 10380</div>
<div>Fixation.OnsetTime: 11373</div><div>Fixation.OnsetDelay: -1</div><div>Fixation.OffsetTime: 12373</div><div><br></div><div><br></div><div><br></div><div>Best,</div><div>Paul</div><div><br></div><div><br></div><div><br>
</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 June 2014 04:37, gorgeous yayuan geng <span dir="ltr"><<a href="mailto:gusunny1@gmail.com" target="_blank">gusunny1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, Paul.</div><div><br></div><div>I have tried again and find that once I set the fixation mode to event the program went smoothly as I expected and its duration I defined would not be shortened. I am a little confused about this part. Do you have an idea?</div>
<div><br></div><div>My best,</div><div><br></div><div>Sally</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-25 22:50 GMT+08:00 sunnygu <span dir="ltr"><<a href="mailto:gusunny1@gmail.com" target="_blank">gusunny1@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi, Paul.</div><div><br></div><div>I just tried what you said but it didn't work as we expected. First of all, I would like make you informed that the rating slide duration is set to zero and I use inline scripts to control the whole presentation to be 5 seconds, each time there is a keyboard response, I would draw the rating slice,making it seems its duration is 5 seconds.</div>
<div><br></div><div>Then here is how I revised as you told me: first fixation prerelease set to be the same as it's duration, since my eprime version didn't have this option, I use the bracketed attribution. Second, I set the rating prerelease to be zero or 5 seconds. </div>
<div>But all turned to be a failure in that the fixation time is shorten.</div><div><br></div><div>So I don't know how to revise it.</div><div><br></div><div>Hope you can give me some guidance. </div><div>Thanks a lot.</div>
<div>Best regards,</div><div><br></div><div>Sally </div><div><br>发自我的 iPhone</div><div><br>在 2014年6月25日,下午9:09,Paul Groot <<a href="mailto:pfc.groot@gmail.com" target="_blank">pfc.groot@gmail.com</a>> 写道:<br><br></div>
<div><div><blockquote type="cite"><div><div dir="ltr">Well, just to make sure we are talking about the same thing: I assumed you have the following consecutive objects on the trial procedure:<div><br></div><div>
...</div><div>RatingSlide</div><div>Inline (with long processing loop)</div>
<div>Fixation</div><div>...</div><div><br></div><div>You can keep the configuration of the Fixation object as required. I.e., just specify the duration using the bracketed attribute name ([time1]). Pre-release can be set to default ('same as duration'). The rating Slide should have duration of 5 seconds and pre-release set to 'same as duration'. So, assuming that the allowed response time for the rating is 5 seconds, this should be OK and there is no need to use <i>CustomOnsetTime </i>and cousins. </div>
<div><br></div><div>The timing mode can be set to event or cumulative. I'm always a bit in doubt if fMRI tasks are synchronized using cumulative timing. For event related designs it's probably not required, unless you would like to make sure that an EPI is made at a very specific point in the BOLD response. In most cases it's sufficient to use the (relative) onset times of the edat files in the fMRI analysis. For block designs you could consider re-synchronization at the start of each block using the trigger signal of the scanner. Although I prefer to use a small piece of script at the end of a block instead, to make sure that any errors are compensated for. But there is no harm done when the cumulative mode is used, as long as you make sure to check the timed log results.</div>
<div><br></div><div>Best,</div><div>Paul</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 25 June 2014 12:18, sunnygu <span dir="ltr"><<a href="mailto:gusunny1@gmail.com" target="_blank">gusunny1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="auto"><div>Hi,Paul. So you mean if I want the fixation after the 5s rating to be presented as long as I defined, I should set the duration before the rating and prerelease to same as duration.<br>
Besides, my rating slice time is fixed to 5s, so I suppose this would work. </div><div>I just tried following: I originally set the fixation as accumulative mode which is required in fMRI and I changed this to event mode which make the fixation last as long as I want. How do you think about this?</div>
<div>By the way, I usually add an attribution in list which tells the fixation duration, but now I defined the duration in fixation property file using[time1] which time1 is the property name in list. Are these two ways the same? Sometimes I find I can't trust the codes in eprime very much. Which would you suggest?</div>
<div><br></div><div>Thanks a lot for your kind reply.</div><div>My best,</div><div>Sally<br>发自我的 iPhone</div><div><br>在 2014年6月25日,下午3:51,Paul Groot <<a href="mailto:pfc.groot@gmail.com" target="_blank">pfc.groot@gmail.com</a>> 写道:<br>
<br></div><blockquote type="cite"><div><div dir="ltr"><div>Hi Sally,</div><div><br></div>You could solve this by setting the duration of the object before the inline to the required value (5 sec), and set pre-release to 'same as duration'. This will make sure that the inline is executed a.s.a.p. and that the next object is scheduled to start after 5 seconds. However, this would not work if the time taken by the inline is variable. In that case you might try using the CustomOnset/OffsetTime properties and set the timing mode to custom (of the object after the inline ). <div>
<br></div><div><div><br></div><div>Paul</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 25 June 2014 02:01, sunnygu <span dir="ltr"><<a href="mailto:gusunny1@gmail.com" target="_blank">gusunny1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="auto"><div>Hi,Paul, yes, I used a loop to make sure the rating lasted for 5s . And I tried to change the following fixation mode to event then the time of the fixation is ok then. But do you have any better idea about this situation? </div>
<div>Thanks for your nice reply.</div><div><br></div><div>Sally<br><br>发自我的 iPhone</div><div><br>在 2014年6月25日,上午6:09,Paul Groot <<a href="mailto:pfc.groot@gmail.com" target="_blank">pfc.groot@gmail.com</a>> 写道:<br>
<br>
</div><blockquote type="cite"><div><div dir="ltr">Hi Sally,<div><br></div><div>Does your inline code use some kind of loop that takes a relative long time to finish? In that case EPrime probably tries to compensate for the 'lost' time when executing the next object. </div>
<div><br></div><div>Paul</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 June 2014 16:20, sally <span dir="ltr"><<a href="mailto:gusunny1@gmail.com" target="_blank">gusunny1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Dear all,</div>
<div> </div>
<div>Recently I find there is a strange thing about eprime. I am engaged in an fMRI experiment. So there is a strict timing demand and I wrote several lines of codes to make it possible in the scanner that subjects use two keys to move the cursor in the screen to do rating from 1-9. </div>
<div>The very obvious problem is that when I run the codes, some presentation before the 1-9 ratings has got something like time ceiling. the rating time is always fixed as I assigned in the codes,but sometimes, the fixation time after the rating is shorten to 0, or sometimes the picture showing time after the fixation also flash more quickly than I expected while another fixation after the picture is still shown as I hoped. It's totally out of my mind. pictures didn't show up for the time I demand in the duration menu.</div>
<div>I think this may have something to do wt my rating part. So I'd better to write out how I realize this part:</div>
<div> </div>
<div>Another guy give me this idea to make the rating 1-9 shown for 0s and afterwards every time I press the button I set up in the rating slide to left or right move the cursor, the eprime would catch the response and check which btton is pressed and make a decision whether the cursor move left or right and how long it would move. then after the axis is determined, I would draw the rating slide. and I have a cycle to control the time by datediff functon to check the start and the end of the cycle is about 5s apart.</div>
<div> </div>
<div>I hope I make myself clear.</div>
<div> </div>
<div>Any idea would be appreciated and hope someone can help me.</div>
<div> </div>
<div>My best,</div><span><font color="#888888">
<div> </div>
<div>Sally</div></font></span></div><span><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/7b4b3274-d26e-48e6-9753-416c720445a5%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/7b4b3274-d26e-48e6-9753-416c720445a5%40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div><br></div><span><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-u5SZ3hEwaDMguViqhBLLGkj1_yQyeGs%2BixD_sncLfb6w%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/CAKAdR-u5SZ3hEwaDMguViqhBLLGkj1_yQyeGs%2BixD_sncLfb6w%40mail.gmail.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></div></blockquote></div><span><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/8BF65B75-ABD2-4959-BD71-D1A8DA4ECF59%40gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/8BF65B75-ABD2-4959-BD71-D1A8DA4ECF59%40gmail.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div><br></div><span><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-vQ7hPCO0KmxptQF4Qsh_ccjHu3RJvQK%3D1HzgFarMMx_w%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/CAKAdR-vQ7hPCO0KmxptQF4Qsh_ccjHu3RJvQK%3D1HzgFarMMx_w%40mail.gmail.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></div></blockquote></div><span><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/E6E547F2-6F29-413A-BF6E-E1CCD6FCA631%40gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/E6E547F2-6F29-413A-BF6E-E1CCD6FCA631%40gmail.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div><br></div><span class="HOEnZb"><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-uWK8MR5R0NrvJF7MhOQUefiT4LNXjWjH76Tna12KnC2Q%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/CAKAdR-uWK8MR5R0NrvJF7MhOQUefiT4LNXjWjH76Tna12KnC2Q%40mail.gmail.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></div></blockquote></div></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAJO0WNZR3rTL0REq-nq5aXkmQ6MD5qtELk%3DCKxQKtHeJpGXv-w%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/CAJO0WNZR3rTL0REq-nq5aXkmQ6MD5qtELk%3DCKxQKtHeJpGXv-w%40mail.gmail.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-uhT9zg_AQg%3DXqYE0wmX9jNyP0hp1hZ0M9y1ikQemaiVg%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/CAKAdR-uhT9zg_AQg%3DXqYE0wmX9jNyP0hp1hZ0M9y1ikQemaiVg%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />