Interrupting a trial (was Starting where I left off

Tony Zuccolotto anthony.zuccolotto at pstnet.com
Fri Jun 14 17:41:35 UTC 2002


Stephen,

The only way I think you can really do this second step currently at a
finer resolution is to... 
	* before the trial sequence starts, set a global variable that
represents the end time of the trial sequence, e.g. g_nEndTime =
Clock.Read + 30000   ' end time 30 seconds from now  (there are ways to
get more precise on this, e.g. use the OnsetTime of the first object to
execute on the first trial of the sequence as your true start point.
	* use an InLine between each object in the trial sequence to
check if the time has 
expired e.g. if Clock.Read >= g_nEndTime.   To get to the InLines as
fast as possible you may want to set your PreRelease times on most of
your trial sequence objects to be the same as your Duration, e.g. this
has the effect of letting the object present its stimuli and enable any
associated input masks and then continue.  (Note in most cases you can
probably re-use the same inline throughout the trial sequence)
	* if you find that time has expired then use the IsPending
method on any potentially active input masks (see InputMask.IsPending)
and terminate them useing InputMask.Terminate
	* if you want the current "partial" trial logged then use a goto
to jump to a label at the very end of the trial, otherwise call Exit Sub
to avoid the implicit logging that occurs at the end of a trial
sequence.

Regards,
Tony

> -----Original Message-----
> From: spalmer at mail.mdanderson.org [mailto:spalmer at mail.mdanderson.org]
> Sent: Friday, June 14, 2002 12:27 PM
> To: eprime at mail.talkbank.org
> Subject: Interrupting a trial (was Starting where I left off
> 
> 
> 
> 
> >The TrialList should have enough samples available for what you would
> >need over the entire experiment, "Reset at the beginning of each Run"
> >set to off, and Exit List set to "After 30 seconds".
> 
> Tony,
> 
> Thanks for your response.  I tried this and it worked just 
> fine.   However,
> 
> >Note that this time limit will not halt a trial in the 
> middle if it expires at
> that
> >time, e.g. the setting is essentially saying "before 
> starting the next
> >trial see if there is any time left - if there is even 1 msec left it
> >will run another complete trial (if this is a problem for your study
> >there are other ways around it but that can be another 
> posting if need
> >be).
> 
> That is exactly what I want to do.  If a trial is in progress 
> when the 30-second
> time limit is up, I'd like to be able to stop the trial and 
> go on to the next
> procedure.  Any advice?
> 
> Stephen Palmer
> Dept. of Symptom Research
> M.D. Anderson Cancer Center
> 
> 
> 
> 
> 
> 
> 
> 
> "Tony Zuccolotto" <anthony.zuccolotto at pstnet.com> on 
> 05/31/2002 09:56:57 AM
>                                                               
>                   
>                                                               
>                   
>                                                               
>                   
> 
> 
>                                                               
>                                                               
>                                                               
>  To:      eprime at mail.talkbank.org                            
>                                                               
>  cc:      (bcc: Stephen N. Palmer/MDACC)                      
>                                                               
>                                                               
>                                                               
>  Subject: RE: Starting where I left off                       
>                                                               
> 
> 
> 
> 
> 
> 
> 
> Stephan,
> 
> 
> Give that a try and see what secondary problems you run into.
> 
> Regards,
> Tony
> 
> *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY
> REFLECT THOSE OF MY EMPLOYER ***
> Anthony P. Zuccolotto
> Vice President of Operations
> Psychology Software Tools, Inc.
> 2050 Ardmore Boulevard
> Suite 200
> Pittsburgh, PA 15221-4610
> Phone     412-271-5040
> FAX       412-271-7077
> Email     anthony.zuccolotto at pstnet.com
> Internet  http://www.pstnet.com/
> 
> 
> 
> > -----Original Message-----
> > From: spalmer at mail.mdanderson.org 
> [mailto:spalmer at mail.mdanderson.org]
> > Sent: Friday, May 31, 2002 10:13 AM
> > To: eprime at mail.talkbank.org
> > Subject: Starting where I left off
> >
> >
> >
> >
> > I am trying to program a mental rotation task in which
> > subjects will perform the
> > task in 30-second blocks.  In each trial, the subject will be
> > shown two
> > 3-dimensional images and asked to judge whether or not the
> > images are the same
> > or different.  Each block will consist of as many trials as
> > the subject can
> > complete in 30 seconds.
> >
> > My question is, how do I program E-Prime to begin the next
> > block where the first
> >  block left off?  For example, if the subject completes
> > trials 1 through 6 in
> > the first block, how do I make the next block start with trial 7?
> >
> > I would appreciate any advice you could give.
> >
> > Stephen Palmer
> > Dept. of Symptom Research
> > M.D. Anderson Cancer Center
> >
> >
> >
> >
> 
> 
> 
> 
> 
> 



More information about the Eprime mailing list