How to ad breaks during a trial list
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



How to ad breaks during a trial list Expand / Collapse
Author
Message
Posted 9/24/2007 8:31:57 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/29/2008 11:43:41 AM
Posts: 18, Visits: 68
Hello,

I am creating an experiment that has 600 trials, and I would like to allow the participant to have a break every 200 trials (so a break after 200, then another break after 400 trials). How can I do this?  Initially I created 3 separate trial lists, each with 200 trials.  But this is messy and makes the data output harder to work with. 

Is there some clever script I can use that can tell E-prime to allow the user to go to a break screen after 200 trials? And then after they press the spacebar, the trials will continue from where they left off?

Cheers!

Post #645
Posted 9/24/2007 9:31:00 AM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Administrators
Last Login: Today @ 5:00:06 PM
Posts: 569, Visits: 1,238
Please see the following sample on the web support site.

Sample: Insert A Pause

-Brandon

Post #646
Posted 10/16/2007 1:12:32 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 10/17/2007 12:04:54 PM
Posts: 10, Visits: 15
I've attached an E-Prime program that implements the procedure that I use for having periodic breaks. The program presents a letter on each trial. The correct response is simply to press the key for that letter on the keyboard. A break occurs after every 10 trials.

To implement the breaks, I followed this procedure:

- Define an integer variable called counter (click on View, then Script, to see it)
- Initialize it to 0 (see the first occurrence of the CounterReset inline script)
- Add 1 to the counter. If the counter equals 10, then goto a flag called StartBreak, else goto a flag called EndBreak (see the CounterUpdate inline script). The "else goto" part makes the program skip the break if the number of elapsed trials is not 10.
- Insert flags called StartBreak and EndBreak at the end of the trial procedure. Between the flags, insert the desired screens to appear during the break.
- Before the EndBreak flag, insert a copy of the CounterReset inline script to reset the counter to 0 for the next run of 10 trials.

Note that with this procedure, you can also easily specify breaks after different numbers of trials by adding extra goto commands and having an additional cumulative counter (i.e., one that is never reset).


  Post Attachments 
counter.es (14 views, 16.36 KB)
Post #702
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 6:56pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 12 queries. Compression Disabled.