<HTML dir=ltr><HEAD><TITLE>In line problems</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText93662 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Jim,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I have designed an experiment with 2 rest periods. I did the following: I created a trial counter which I declared in the User script and wrote in a global inline at the begining of my experiment (gnTrial_Counter =0) In my trialproc timeline, I put an empty textdisplay object, which I called 'break'. I assigned it an infinite duration and the spacebar as allowable reponse in the object property. I put a Label after the 'break' textdisplay so that the textdisplay is skipped except on trial 120 and trial 240. Below is the script I used in my inline before the textdisplay object. Hope this helps. Get back to me if it's not clear.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>best,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>stephane </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">gnTrial_Counter = gnTrial_Counter+1</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">if gnTrial_Counter = 120 then</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p> </o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-tab-count: 1"> </SPAN>break.Text = "Have a break now" &_</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-tab-count: 3"> </SPAN>"\nPress the spacebar when you want to continue"</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">elseif gnTrial_Counter = 240 then</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-tab-count: 1"> </SPAN>break.Text = "Have a break now" &_</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-tab-count: 3"> </SPAN>"\nPress the spacebar when you want to continue"</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">else </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-tab-count: 1"> </SPAN>Goto Label1</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p> </o:p>end if</P></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature22136 dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2>
<DIV><FONT size=2>------------------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2>Stephane De Brito, PhD student<BR>Institute of Psychiatry, King's College London<BR>Forensic Mental Health Science Department<BR>Box P023<BR>De Crespigny Park<BR>Denmark Hill<BR>London SE5 8AF<BR>United Kingdom</FONT></DIV>
<DIV><FONT size=2><BR>Tel: + 44 (0) 20 7848 0711<BR>Fax: + 44 (0) 20 7848 0754<BR>website: www.iop.kcl.ac.uk<BR></DIV></FONT></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> eprime@mail.talkbank.org on behalf of psp48d@bangor.ac.uk<BR><B>Sent:</B> Wed 21/03/2007 16:41<BR><B>To:</B> eprime@mail.talkbank.org<BR><B>Subject:</B> In line problems<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Dear E-Prime Experts,<BR><BR>I have designed an experiment that has 196 trials, and I wanted to introduce a<BR>text page after trial 98 offering a rest period to the participant. My problem<BR>is twofold:<BR><BR>1)First of all I tried to get e-prime to keep track of what trial we are on by<BR>referncing the “Block” attribute. I did this as follows:<BR><BR>Dim Trial<BR>Trial=c.GetAttrib (“Block”)<BR><BR>However, when running it, e-prime did not recognise block as an attribute. So I<BR>tried to create my own:<BR><BR>Dim Trial as integer<BR>Trial = Trial + 1<BR><BR>This also did not work.<BR><BR>2)Secondly, I placed the “rest” page in my trialproc timeline, and tried to get<BR>e-prime to access it via an 'inline' at the end of the timeline:<BR><BR>If Trial = 98 then<BR>Rest.run<BR> 'referncing my textpage for the rest period<BR>Else fixation.run<BR> 'this last line is trying to get e-prime to revert to the beginning<BR> 'of the trialproc timeline if the trial is not 98. This doesn't work<BR>End if<BR><BR>How do I get e-prime to keep track of the trial number, and how do I introduce a<BR>rest page if a certain trial number is satisfied?<BR><BR>Yours in confusion!<BR><BR>Jim Grange.<BR>University of Wales, Bangor.<BR><BR><BR><BR><BR>--<BR>This mail sent through <A href="http://webmail.bangor.ac.uk/">http://webmail.bangor.ac.uk</A><BR><BR><BR>--<BR>Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi,<BR>gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig<BR>gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y<BR>neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar<BR>unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi,<BR>rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a<BR>gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i<BR>hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn<BR>Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu<BR>bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu<BR>100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn<BR>nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract<BR>rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa<BR>Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk<BR><BR>This email and any attachments may contain confidential material and<BR>is solely for the use of the intended recipient(s). If you have<BR>received this email in error, please notify the sender immediately<BR>and delete this email. If you are not the intended recipient(s), you<BR>must not use, retain or disclose any information contained in this<BR>email. Any views or opinions are solely those of the sender and do<BR>not necessarily represent those of the University of Wales, Bangor.<BR>The University of Wales, Bangor does not guarantee that this email or<BR>any attachments are free from viruses or 100% secure. Unless<BR>expressly stated in the body of the text of the email, this email is<BR>not intended to form a binding contract - a list of authorised<BR>signatories is available from the University of Wales, Bangor Finance<BR>Office. www.bangor.ac.uk<BR><BR><BR></FONT></P></DIV></BODY></HTML>