Dear all,<br><br>Thank you very much for you help! I have the eprime programe almost done! (thanks to your advices!).<br><br>I came across with a couple of more problems:<br><br>(1) Measuring RT from the first display.<br>
<br>As I as previously explained, I present a visual array of stimuli followed by a blank screen upto 16 times or until response (stimArray+Blank, stimArray+Blank, and so on). The RT measure I get is just from the last stimArray+Blank ( the one you respond to, instead of being from the first one). I would like to have a measure of the RT from the first display until response (whether is one or 16 displays). Is there a way to do this? <br>
<br>(2) Set one stimuli from the distractor list to be target for just that session.<br><br>I have a set of targets in a list and the distractors in a separate nested lists. For the baseline condition, I would be ideal if I could call randomly one of the distractors and set it to be one of the targets (for only that session and in the following session it will become again a distractor, and, of course, in that session is never seen as a distractor). <br>
<br><br>Any help is very appreciated.<br><br>Thanks in advance<br><br>Julia<br><br><br><div class="gmail_quote">2008/4/24 David McFarlane <<a href="mailto:mcfarla9@msu.edu">mcfarla9@msu.edu</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Julia,<br>
<br>
And here's another way to do it, without using a<br>
counter, and making use of functionality built in to E-Prime objects.<br>
<br>
First, I assume that your search task, with<br>
stimulus array and blank screen, is in a<br>
Proc.  Let's call that PresentationProc.<br>
<br>
Now, put PresentationProc in a list object, let's<br>
call that PresentationList.  So PresentationList<br>
has just one row with your PresentationProc in<br>
it, and your structure looks something like this:<br>
<br>
PresentationList<br>
     PresentationProc<br>
         StimArray<br>
         BlankScreen<br>
         TrialFinishScript<br>
<br>
Now comes the fun.  To make PresentationProc<br>
repeat, say, 16 times, you can do one of two<br>
things in the PresentationList:  (1) Give your<br>
PresentationProc row a weight of 16 (most users<br>
will find this the more natural way), or  (2) in<br>
the properties page of the PresentationList, go<br>
to the Reset/Exit tab and set it to exit after 16 cycles (my preferred method).<br>
<br>
OK, now your trial will last for 16<br>
presentations.  How to get it to stop after a<br>
response?  You just need one line of script in TrialFinishScript, e.g.,<br>
<br>
If Not(StimArray.InputMasks.IsPending()) Then PresentationList.Terminate<br>
<br>
That's it.  The .Terminate will make the list exit early.<br>
<br>
Now, a bit more to the lesson.  There are several<br>
ways for script to detect a response.  Here are<br>
four tests that return True if a response has occured to Stim:<br>
- If Not(Stim.InputMasks.IsPending()) Then ...<br>
- If Stim.RT <> 0 Then ...<br>
- If Stim.RTTime <> 0 Then ...<br>
- If Stim.RESP <> "" Then ...<br>
<br>
Note that .IsPending() returns False if either it<br>
has received a response or the response time<br>
limit has passed, so it only works while waiting<br>
for a response (i.e., it will not work afterwards<br>
to tell whether or not a response was received<br>
earlier).  Other than that, which test you use is largely a matter of taste.<br>
<br>
For more information on these, please see the<br>
List Object and InputMask Object topics in the E-Basic online help.<br>
<font color="#888888"><br>
-- David McFarlane, Professional Faultfinder<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
At 4/23/2008 08:12 PM Wednesday, Julia Gomez wrote:<br>
>Hi everyone,<br>
><br>
>Could anyone help with the following script? I<br>
>am doing a interrupted visual search task. I am<br>
>presenting a screen with the stimuli array for<br>
>the search task followed by another screen with<br>
>a blank screen. Once a trial has started I would<br>
>like this trial to repeat (i.e stimuli array and<br>
>white screen over and over) until a maximum of<br>
>16 times or  until the participant responds. I<br>
>created the following script but is giving me an<br>
>error. I am not familiar writing scripts in eprime.<br>
><br>
>Dim count as string<br>
><br>
>count=0<br>
><br>
>While count<17 ' I need to repeat a trial up to 16 times or until response<br>
>    If StimuliArray.RESP = " " Then ' I am not<br>
> sure how to tell eprime if there is no response.<br>
>        Goto ShowStimAgain ' this is a label<br>
> that I inserted after the fixation cross<br>
>    End If<br>
>count = count +1<br>
>End<br>
><br>
>Any help would be very appreciated.<br>
><br>
>Thanks<br>
><br>
>Julia Gómez<br>
<br>
<br>
</div></div><div><div></div><div class="Wj3C7c"><br>
</div></div></blockquote></div><br><br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime-unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en <br> -~----------~----~----~----~------~----~------~--~---<br>
<br>