Thank you, this approach would probably work :)<br><br>On Friday, 22 March 2013 13:11:36 UTC, Michiel Sovijärvi-Spapé  wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Valerio,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">So, you want the subject to see the slide for another 1340 ms if they have pressed the button after 1000 ms. So, instead of</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If Slide.RT < T then </span></p><p style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Accuracy = 0</span></p><p style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Slide.Duration = T – Slide.RT</span></p><p style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Goto LabelX</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">End if</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Would that work? Now, the duration is adjusted based on the RT. This works, I think, sort of, unless if T = say, 2500. The subject presses the button after 2000 ms (and thus has 500 ms left to see the screen), but now presses the button after 400 ms – oops, now they will see the screen for 2100 ms again. In order to cope, you could add a bit more code above, or reduce T by RT. You could also use an attribute for Slide.Duration to make it something like [T_not_yet_seen], which is first</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">c.setAttrib “T_not_yet_seen”, c.GetAttrib(“T”)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">and in the IF statement above,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">c.SetAttrib “T_not_yet_seen”, c.GetAttrib(“T_not_yet_seen”) – Slide.RT</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Michiel  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9wPg2MTT7t0J">e-p...@googlegroups.com</a> [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="9wPg2MTT7t0J">e-p...@googlegroups.<wbr>com</a>] <b>On Behalf Of </b>Valerio Biscione<br><b>Sent:</b> 22. March 2013 14:08<br><b>To:</b> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9wPg2MTT7t0J">e-p...@googlegroups.com</a><br><b>Subject:</b> Re: Terminate the slide only when the subject press a key after a random time</span></p></div><p class="MsoNormal"> </p><p class="MsoNormal">Hi Michael and thank you for your reply.<br>The problem is that when I go back to the labelX the time that the subject "passes" on the slide1 starts again from 0. But when the subject presses the key (before the reward is available), I would be able to stay on the same slide, so the timer will keep counting the time. <br>I will explain myself better: <br><br>imagine that the random number is 2.34seconds. Now the subject press the key after 1 seconds. I would like to be able to have the subject to continue to see the same slide. So the subject waits another 1.5 seconds (and the total is now 2.5 seconds) before pressing the button. But now, when he/her presses it, the software goes to the next slide.<br><br>In you example the subject will always starts from 0. So using the same random number as before, if he/her presses the key after 1 seconds, he has to wait at least 2.34 seconds before pressing the key and getting the reward (whereas in the previous example, after the first pressing, he/her has to wait just a minimum of 1.34 seconds).<br><br> <br><br><br>On Friday, 22 March 2013 11:44:22 UTC, Michiel Sovijärvi-Spapé wrote:</p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It’s not really that strange – I find that many people, but cognitive psychologists in particular, seem unaware of just how very small the world of their favourite paradigm can be </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> In fact, I have not heard of this procedure and I suppose this is because it is more popular with those who’re more interested in the conditioning side of things, but I could be wrong there. </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In any case, what’s wrong with </span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">1.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Inline: Accuracy = -1</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">2.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">LabelX</span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">3.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Slide, set .Duration to -1. </span></p><p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">4.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If Slide.RT < T then </span></p><p style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Accuracy = 0</span></p><p style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Goto LabelX</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Etc?</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sorry, it’s Friday, difficult to think very straight, but to be honest, I cannot see what’s wrong with just going back to the moment just before the slide is presented. </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Michiel</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a>e-p...@googlegroups.com</a> [mailto:<a>e-p...@googlegroups.<wbr>com</a>] <b>On Behalf Of </b>Valerio Biscione<br><b>Sent:</b> 22. March 2013 13:21<br><b>To:</b> <a>e-p...@googlegroups.com</a><br><b>Subject:</b> Terminate the slide only when the subject press a key after a random time</span></p></div><p class="MsoNormal"> </p><p class="MsoNormal">I have searched on the group for other topics with this problem, but I haven't found anything. <br>This is actually a normal Variable Interval schedule, so it's strange that hasn't been treated already.<br><br>I want to show a slide to the subject. At the beginning of the slide a random number is generated. This random number indicates the number of milliseconds that the subjects has to wait to receive a reward. Let's call this random number T. The subject can press the key anytime he/she wants, but only if he presses the time AFTER the time T he will receive a reward and the software can go to the next slide. If he presses the key before T he receive a punishment, but can still try to "win" the reward in the slide.<br><br>I already solved the problem to record all the RTtime that the subject press the key during the slide. The problem is to make the software to go further ONLY if the key is pressed after T. T is recorded in a variable, but won't be a problem to use an attribute.<br>Do you have any idea?<br>Kind Regards<br>Valerio </p><p class="MsoNormal">-- <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>e-prime+u...@googlegroups.com</a>.<br>To post to this group, send email to <a>e-p...@googlegroups.com</a>.<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/xIBEh-dbA3oJ" target="_blank">https://groups.google.com/d/<wbr>msg/e-prime/-/xIBEh-dbA3oJ</a>.<br>For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>.<br> <br> </p></div></div><p class="MsoNormal">-- <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="javascript:" target="_blank" gdf-obfuscated-mailto="9wPg2MTT7t0J">e-prime+u...@<wbr>googlegroups.com</a>.<br>To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9wPg2MTT7t0J">e-p...@googlegroups.com</a>.<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/Fof8yQk69rkJ" target="_blank">https://groups.google.com/d/<wbr>msg/e-prime/-/Fof8yQk69rkJ</a>.<br>For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>.<br> <br> </p></div></div></blockquote>

<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 e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/GDBP9H-L_LgJ">https://groups.google.com/d/msg/e-prime/-/GDBP9H-L_LgJ</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
 <br />
 <br />