Script for redoing a trial up to 16 times or untill response
James Keidel
keidel at gmail.com
Thu Apr 24 01:10:30 UTC 2008
hey
I'm not sure exactly how to fix the whole script, but for sure you
need to declare the counter as an integer, not a string. you can't
increment a string that way. also, eprime likes variable references
to have a type signifier, so you want to say count% = count% + 1 bc %
means integer. in addition, although it is rather inelegant, you
could just have a single TrialProc with 16 alternating stim arrays and
blanks, where each one had a max duration but the stim arrays also
accepted input and had an end action which jumped to your label.
JK
On Thu, Apr 24, 2008 at 1:12 AM, Julia Gomez <gomez.julia at gmail.com> wrote:
> Hi everyone,
>
> Could anyone help with the following script? I am doing a interrupted visual
> search task. I am presenting a screen with the stimuli array for the search
> task followed by another screen with a blank screen. Once a trial has
> started I would like this trial to repeat (i.e stimuli array and white
> screen over and over) until a maximum of 16 times or until the participant
> responds. I created the following script but is giving me an error. I am not
> familiar writing scripts in eprime.
>
> Dim count as string
>
> count=0
>
> While count<17 ' I need to repeat a trial up to 16 times or until response
> If StimuliArray.RESP = " " Then ' I am not sure how to tell eprime if
> there is no response.
> Goto ShowStimAgain ' this is a label that I inserted after the
> fixation cross
> End If
> count = count +1
> End
>
> Any help would be very appreciated.
>
> Thanks
>
> Julia Gómez
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime-unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---
More information about the Eprime
mailing list