experiment timer, or safe mid-experiment stop?

Sam samantha721 at gmail.com
Fri Sep 28 13:57:27 UTC 2012


Hello, 

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?

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. 

Sam

On Thursday, September 27, 2012 5:00:11 PM UTC-4, Paul Groot wrote:
>
>
> 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:
>
>
> Const maxduration&=600000&   ' add & to make sure large values are 
> declared as long integer
>
> if Clock.ReadMillisec>=StartObject.OnsetTime+maxduration then
>    SetUserBreakState(1)
> end if
>
> if GetUserBreakState() then
>     TrialList.Terminate
>     BlockList.Terminate
> end if
>
> 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).
>
> Cheers
> Paul
>
>
>
> 2012/9/27 terhi helminen <helmin... at gmail.com <javascript:>>
>
>> Hi,
>>
>> For option number 1 see the safe exit sample in 
>> http://www.pstnet.com/support/samples.asp?Mode=View&SampleID=22  
>>
>> Terhi
>>
>> On Thu, Sep 27, 2012 at 7:17 PM, Alison T Miller Singley <
>> alisont... at gmail.com <javascript:>> wrote:
>>
>>> 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.
>>>
>>> I can think of two options, but I don't know how to operationalize 
>>> either of them:  :)
>>> 1 - have the test administrator watch time and manually stop the 
>>> experiment at 10 minutes
>>> 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?
>>>
>>> 2 - set an experiment-level timer to end after 10 minutes
>>> Issue: I don't know how to do this. :) Does anyone know of a feature or 
>>> code I could use as an example?
>>>
>>> Thanks!
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "E-Prime" group.
>>> To post to this group, send email to e-p... at googlegroups.com<javascript:>
>>> .
>>> To unsubscribe from this group, send email to 
>>> e-prime+u... at googlegroups.com <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/e-prime/-/BaIbAT82ksYJ.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "E-Prime" group.
>> To post to this group, send email to e-p... at googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> e-prime+u... at googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/eMlUPO9Xje8J.
For more options, visit https://groups.google.com/groups/opt_out.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120928/79b537e6/attachment.htm>


More information about the Eprime mailing list