scorebar

Ben Robinson brobinso at mprc.umaryland.edu
Wed Mar 21 16:54:48 UTC 2007


if you can calculate their accuracy after each trial you could multiply that percentage times the number of pixels in the height of the screen (eprime defaults to 640x480, so 480 pixels are the height of the screen).

something like, after each trial add 1 to a trial counter (trialcounter = trialcounter + 1), and after correct responses add 1 to a correct response counter (If Slide1.ACC = 1 Then... correctcounter = correctcounter + 1... End If).
divide correctcounter by trialcounter to get an accuracy between 0 and 1 (currentacc = correctcounter/trialcounter).
multiply current accuracy by the height of the screen to determine where on the screen you want your horizontal bar (barheight = currentacc*480).
then at the start of the next trial set the Y coordinate of your slideimage object equal to barheight.
that might do it.

>>> Elizabeth Smith <smithel at psych.upenn.edu> 3/21/2007 11:22 AM >>>
I have a probabilistic learning task where I need a scorebar on the side 
of the screen to go up when the subject gets a correct answer and down 
when it is incorrect.  I found a sample of a scorebar program online, 
but its not really what I'm looking for.  Basically I have two images.  
A vertical line and a smaller horizontal line.  I'm wondering if there 
is a way to get the small horizontal line image to move up for correct 
answers and down for incorrect answers and to stay in that position 
until the next trial.  So the movement is cumulative. 

Any thoughts/ideas would be greatly appreciated.  I'm not great at 
programming and I'm a bit stuck on this problem.

Thanks!

-- 
Elizabeth Smith
Farah Lab
Center for Cognitive Neuroscience
University of Pennsylvania
215.573.8534 (office)
215.275.5474 (cell)



More information about the Eprime mailing list