Script for redoing a trial up to 16 times or untill response
Michiel Spape
MSpape at FSW.leidenuniv.nl
Thu Apr 24 01:27:00 UTC 2008
Hi Julia,
How about this? A bit late, so maybe I'm making a couple of errors myself, but I hope it helps.
Dim count as string ' this should be in the user script, else the count is reset
count=0 ' this should be at the start of the trial, else it starts at 0 every time
'after the StimuliArray... I suppose this is a textDisplay or something?:
if (StimuliArray.Resp = "") AND (count < 17) then 'if no response is given and the number of that happened (count) is smaller than 17
count = count + 1 'then continue counting
goto ShowStimAgain 'and go back AFTER counting (otherwise it never counts because it went to the label before that)
end if 'and to end a while statement, I think e-prime expects you to use WEnd;
Cheers,
Michiel Spapé
________________________________
Van: e-prime at googlegroups.com namens Julia Gomez
Verzonden: do 24-4-2008 2:12
Aan: e-prime at googlegroups.com
Onderwerp: Script for redoing a trial up to 16 times or untill response
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
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
--~--~---------~--~----~------------~-------~--~----~
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