Group: Forum Members
Posts: 25,
Visits: 79
|
Hi,
I have a question regarding the script below. When this trial is presented, participants have to remember a letter and press the spacebar when they see a picture of a light bulb turned on. Now I am wondering whether it is possible to show them a picture of a light bulb that is turned off when they perform the valid response whilst the letters stays onscreen? Do I need to make a new trial that gets invoked via the / branch logic, or is there a more efficient way of doing this?
<trial show_letter_acting> / ontrialbegin = [values.lettercount+=1] / ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue] / ontrialend= [item.PresentedLetters.item=text.Letters.currentitem] / pretrialpause = 200 / stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize] / trialduration = values.learninginterval / inputdevice = keyboard / validresponse = (57) / branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter_acting] / branch = [trial.InitMathProblem01] / recorddata = true </trial>
Kind regards
|