how to display 20 stimuli, then give break, then continue on with next 20, then give break, etc.

2,159 views
Skip to first unread message

LKem

unread,
Mar 7, 2013, 7:16:56 PM3/7/13
to e-p...@googlegroups.com
I'm presenting sentence stimuli and have over 100, which I want to present sequentially, in the order entered into the e-prime list object.

I would like to give subjects a break every 20 items.
Thus, they would read items 1-20, then have a break,  then they would continue on with the next 20 stimuli (now pulling items 21 - 40), then have a break, then read items 41 to 60, then have a break, etc.

I cannot figure out how to build in such a break, short of running each group as a separate experiment (in which case, I'd have to combine the data files from each separate experiment).

Any suggestions?  I'm not great at programming from scratch, but may be able to take someone else's script (doing something similar) & make it work in my experiment.
Thanks.

Tim Ritzert

unread,
Mar 7, 2013, 8:35:01 PM3/7/13
to <e-prime@googlegroups.com>
As long as you do not need all the stimuli presented in a random order, my first thought is that you can simply create separate list objects, each with 20 sentences - then adding in a break in between the different procedures. 

-Tim
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/W42MGm7xubAJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

David Vinson

unread,
Mar 8, 2013, 4:58:47 AM3/8/13
to e-p...@googlegroups.com
One way is to create an unreferenced "Break" object and then use inline
code to run it only in certain conditions (e.g. trial mod 20 = 0).
See the sample experiment "Insert A Pause" on PST's site:
http://www.pstnet.com/support/samples.asp?Mode=View&SampleID=33

It's also possible to do the same thing by including the Break display
in your main trial procedure, followed by a Label. Add an inline
object before Break display to test sample number and "goto labelname"
if it does not meet your desired conditions (thus skipping the break
except when conditions are met for it). Not entirely elegant but very
easy to implement.

best,
DavidV
> --
> You received this message because you are subscribed to the Google
> Groups "E-Prime" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to e-prime+u...@googlegroups.com.
> To post to this group, send email to e-p...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/e-prime/-/W42MGm7xubAJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
David Vinson, Ph.D.
ESRC Research Fellow
Cognitive, Perceptual and Brain Sciences Research Department
University College London
26 Bedford Way, London WC1H 0AP
Tel +44 (0)20 7679 5311 (UCL internal ext. 25311)


David McFarlane

unread,
Mar 8, 2013, 10:13:30 AM3/8/13
to e-p...@googlegroups.com
This question comes up from time to time, see, e.g.,
http://groups.google.com/group/e-prime/browse_thread/thread/2efc8e169cba7ef8
. PST's "Insert A Pause" InLine If-Then method is popular. My own
favorite method is to put all the stimuli into one nested List (set
to Sequential or Random order, as appropriate), make the break into a
separate Procedure, and then in the main running List put the
sequence of trial and break Procedures, running in Sequential
order. Something like

Weight Nested Procedure
------ -------- ---------
20 StimList TrialProc
1 RestProc
20 StimList TrialProc
1 RestProc
20 StimList TrialProc

We do this in one of the exercises in my online E-Prime course. Note
that this method does not require any inline code, it merely takes
advantage of the features provided by E-Prime. Nested Lists are
wonderful -- please also see the Nested Lists tutorial in Appendix C
of the User's Guide that came with E-Prime.

-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)

João Ferreira

unread,
Nov 11, 2015, 4:13:11 PM11/11/15
to E-Prime
Hi

I am using your method and it works like a charm. My only question is, with this procedure does it never repeat anything after each break/pause? I mean, having the nested lists like that you are sure it will only run each stimuli once? (all my stimuli have a weight of 1)

David McFarlane

unread,
Apr 18, 2016, 1:27:50 PM4/18/16
to e-p...@googlegroups.com
Sorry, looks like I never got back to answer that last question, I will
do so now ...

As long as you do not run more trials than the rows in your nested
StimList, and you have Reset Sampling set to "All samples", and you have
Weights set to 1, then no, it will never repeat any row after each
break/pause; i.e., it will run each stimulus only once. A List acts
like a deck of playing playing cards -- when set to Random, E-Prime
shuffles the deck, then draws one card at a time until it exhausts the
deck, then reshuffles the deck and starts over. If you stop dealing
cards in the middle for a break, then you just resume dealing cards from
where you paused in the deck. Does this make sense?

I explain this in my online course.

---------------
David McFarlane
E-Prime training online:
http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)


On 2015-11-11 4:13 PM, João Ferreira wrote:
> I am using your method and it works like a charm. My only question is, with this
> procedure does it never repeat anything after each break/pause? I mean, having
> the nested lists like that you are sure it will only run each stimuli once? (all
> my stimuli have a weight of 1)
>
> On Friday, March 8, 2013 at 3:13:30 PM UTC, McFarlane, David wrote:
>
> This question comes up from time to time, see, e.g.,
> http://groups.google.com/group/e-prime/browse_thread/thread/2efc8e169cba7ef8
> <http://groups.google.com/group/e-prime/browse_thread/thread/2efc8e169cba7ef8>
> . Â PST's "Insert A Pause" InLine If-Then method is popular. Â My own
> favorite method is to put all the stimuli into one nested List (set
> to Sequential or Random order, as appropriate), make the break into a
> separate Procedure, and then in the main running List put the
> sequence of trial and break Procedures, running in Sequential
> order. Â Something like
>
> Weight  Nested   Procedure
> ------ Â -------- Â ---------
>    20  StimList  TrialProc
> Â Â Â 1 Â Â Â Â Â Â RestProc
>    20  StimList  TrialProc
> Â Â Â 1 Â Â Â Â Â Â RestProc
>    20  StimList  TrialProc
>
> We do this in one of the exercises in my online E-Prime course. Â Note
> that this method does not require any inline code, it merely takes
> advantage of the features provided by E-Prime. Â Nested Lists are
> wonderful -- please also see the Nested Lists tutorial in Appendix C
> of the User's Guide that came with E-Prime.
>
> -----
> David McFarlane
> E-Prime training
> online: Â http://psychology.msu.edu/Workshops_Courses/eprime.aspx
> <http://psychology.msu.edu/Workshops_Courses/eprime.aspx>
> Twitter: Â @EPrimeMaster (https://twitter.com/EPrimeMaster
> <https://twitter.com/EPrimeMaster>)
>
>
> At 3/8/2013 04:58 AM Friday, David Vinson wrote:
> >One way is to create an unreferenced "Break" object and then use
> >inline code to run it only in certain conditions (e.g. trial mod 20 = 0).
> >See the sample experiment "Insert A Pause" on PST's site:
> >http://www.pstnet.com/support/samples.asp?Mode=View&SampleID=33
> <http://www.pstnet.com/support/samples.asp?Mode=View&SampleID=33>
> >
> >It's also possible to do the same thing by including the Break
> >display in your main trial procedure, followed by a Label. Â Add an
> >inline object before Break display to test sample number and "goto
> >labelname" if it does not meet your desired conditions (thus
> >skipping the break except when conditions are met for it). Â Not
> >entirely elegant but very easy to implement.
> >
> >best,
> >DavidV
> >
> >
> >
> >On 08/03/2013 00:16, LKem wrote:
> >>I'm presenting sentence stimuli and have over 100, which I want to
> >>present sequentially, in the order entered into the e-prime list object.
> >>
> >>I would like to give subjects a break every 20 items.
> >>Thus, they would read items 1-20, then have a break, Â then they
> >>would continue on with the next 20 stimuli (now pulling items 21 -
> >>40), then have a break, then read items 41 to 60, then have a break, etc.
> >>
> >>I cannot figure out how to build in such a break, short of running
> >>each group as a separate experiment (in which case, I'd have to
> >>combine the data files from each separate experiment).
> >>
> >>Any suggestions? Â I'm not great at programming from scratch, but

João Ferreira

unread,
Apr 18, 2016, 3:21:17 PM4/18/16
to e-p...@googlegroups.com
Thanks for the reply!

I used your method and tested it out a couple of times (with a small mumber of trials) and figured that it worked in the way you just described. This made my program much more pleasant looking.

Best regards,
João Ferreira

--
You received this message because you are subscribed to a topic in the Google Groups "E-Prime" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/e-prime/yEnX_KqO5nU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to e-prime+u...@googlegroups.com.

To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/57151912.1080105%40msu.edu.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages