<div dir="ltr"><div>Hi Ellie,</div><div><br></div>One way of doing this, it to start with storing the trigger time of the scanner in a global variable. You need to declare this variable in the 'User' tab page of the script window:<div>
<br></div><div>Dim lTriggerTime as long</div><div><br></div><div>Then, assign the trigger time. Assuming you have an object that waits for the trigger signal (say a Text object called WaitForTrigger), you should add an inline script immediately after this object and enter the following:</div>
<div><br></div><div>lTriggerTime = WaitForTrigger.RTTime<br></div><div><br></div><div>Then, at the end of the trial, add an inline script with the following:</div><div><br></div><div>if Clock.Read>=lTriggerTime+3*60000 then</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 April 2014 11:39, Ellie van Setten <span dir="ltr"><<a href="mailto:ellievansetten@gmail.com" target="_blank">ellievansetten@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">Hi everyone,<div><br></div><div>I am doing an fMRI experiment with children with dyslexia and controls. They have to perform a rhyming task. Because control children are much faster than dyslexic children I would like the response time to be variable (because otherwise it would be extremely boring) The problem is that the scanner needs to synchronize with the E-prime task after a fixed time (the scanner sends a trigger that allows E-prime to go on). My solution would be to limit the time the children can spend on the task to three minutes, then have a small break with a fixation cross and synchronize and then go to the next block. Only for the fast children I would like that they go to the break a bit earlier, after 25 trials. So I want to pick 25 samples from my task list OR I would like to stop the task and go to the break after three minutes. Preferably letting the children finish the trial that was started. I have tried using some in-line codes but this did not work. I hope you have suggestions how I can solve this problem.</div>
<div><br></div><div>Best, </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Ellie</div></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/0935c7d7-a869-401c-a34d-46d8e5ba8a41%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/0935c7d7-a869-401c-a34d-46d8e5ba8a41%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>
<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-vacB%2BG9k-HqhzzvjYCazc3%3DZ147fVu30YjQs4oYJvArQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/CAKAdR-vacB%2BG9k-HqhzzvjYCazc3%3DZ147fVu30YjQs4oYJvArQ%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 />