Interesting, thank you very much for your help! :-)<div><br></div><div>Best,</div><div>Sam<br><div><br><br>On Friday, September 28, 2012 12:18:37 PM UTC-4, Paul Groot wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Well, probably the easiest way to achieve this is to add additional inline script that sets the duration of the response-object to the allowed 'leftover' time. It shouldn't be to difficult if you only focus on the trial objects that have their durations set to infinite. Basically is can be something like this:<br>
<br>Dim leftover as long<br>leftover = StartObject.OnsetTime + maxduration - Clock.ReadMillisec<br>if leftover<0 then<br>   leftover = 0<br>end if<br>RespObject.Duration = leftover<br><br>The maxduration constant (defined in the previous example) should be placed in the global User Script section, so it is available in all inline scripts. You might have to add additional scripts if you have several trial objects that should be handled (probably using goto's and a label to jump to the end of a trial if leftover<=0)<br>
<br>cheers<br>Paul<br><br><div class="gmail_quote">2012/9/28 Sam <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="n27rcwuhgyUJ">saman...@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, <div><br></div><div>I found the above script for setting the Break State to be very helpful since I am currently trying to accomplish something similar. I have an IQ test that must advance to a feedback stage after 20 minutes if the questions haven't been completed. However, the way I implemented the above suggestion, it seems to wait until the end of the trial in order to terminate. Since subjects can take as long as they want on each trial, the trial duration is "infinite", so it's possible it could never exit until much later if they are just beginning one of the questions before the time runs out. Do you know if there is a way I can modify the script so that it would end the current trial as soon as the time limit is reached?</div>
<div><br></div><div>Thanks for your help, and I apologize if there is something very basic I have missed. I am somewhat new to programming in E-prime. </div><div><br></div><div>Sam<br><br>On Thursday, September 27, 2012 5:00:11 PM UTC-4, Paul Groot wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>Parallel to the manual break method (using GetUserBreakState), you could add a simple test that calculates the difference between the 'çurrent time' and some starting point, and use this value to set the break state as soon as a timeout limit is reached:<br>


<br><br>Const maxduration&=600000&   ' add & to make sure large values are declared as long integer<br><br>if Clock.ReadMillisec>=<u></u>StartObjec<wbr>t.OnsetTime+<u></u>maxduration then<br>   SetUserBreakState(1)<br>
end if<br>
<br>if GetUserBreakState() then<br>    TrialList.Terminate<br>    BlockList.Terminate<br>end if<br><br>Where StartObject is the object that is the first one displayed in the 10minute epoch (this must be an object that is displayed only once).<br>

<br>Cheers<br>Paul<br><br><br><br><div class="gmail_quote">2012/9/27 terhi helminen <span dir="ltr"><<a>helmin...@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div><div>For option number 1 see the safe exit sample in </div><div><a href="http://www.pstnet.com/support/samples.asp?Mode=View&SampleID=22" target="_blank">http://www.pstnet.com/support/<u></u><wbr>samples.asp?Mode=View&<u></u>SampleID<wbr>=22</a>  </div>



<div><br></div><div>Terhi</div><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 7:17 PM, Alison T Miller Singley <span dir="ltr"><<a>alisont...@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd like to modify an experiment to last only 10 minutes total, so regardless of how many trials a subject completes, the experiment stops at 10 minutes.<div>



<br></div><div>I can think of two options, but I don't know how to operationalize either of them:  :)</div><div>1 - have the test administrator watch time and manually stop the experiment at 10 minutes</div><div>Issue: by aborting the experiment (with ctrl+alt+shift), the .edat file is not created. Is there a way to safely stop an experiment and preserve the data? Or a way to write the .edat file continuously?</div>



<div><br></div><div>2 - set an experiment-level timer to end after 10 minutes</div><div>Issue: I don't know how to do this. :) Does anyone know of a feature or code I could use as an example?</div><div><br></div><div>



Thanks!</div><span><font color="#888888"><span><font color="#888888"><div><br></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To post to this group, send email to <a>e-p...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a>e-prime+u...@<u></u>googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/BaIbAT82ksYJ" target="_blank">https://groups.google.com/d/<u></u>ms<wbr>g/e-prime/-/BaIbAT82ksYJ</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<u></u>grou<wbr>ps/opt_out</a>.<br>
 <br>
 <br>
</font></span></font></span></blockquote></div><span><font color="#888888"><br><span><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To post to this group, send email to <a>e-p...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a>e-prime+u...@<u></u>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<u></u>grou<wbr>ps/opt_out</a>.<br>
 <br>
 <br>
</font></span></font></span></blockquote></div><span><font color="#888888"><br>
</font></span></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 post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="n27rcwuhgyUJ">e-p...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="n27rcwuhgyUJ">e-prime+u...@<wbr>googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/eMlUPO9Xje8J" target="_blank">https://groups.google.com/d/<wbr>msg/e-prime/-/eMlUPO9Xje8J</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>
 <br>
</font></span></blockquote></div><br>
</blockquote></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/lt1bckwKEFAJ">https://groups.google.com/d/msg/e-prime/-/lt1bckwKEFAJ</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 />