Help with /ontrialbegin function to add fixation cross to start of trial


Author
Message
Greeny
Greeny
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 14, Visits: 51
Hi Dave,

I want to add a 500ms fixation cross to the start of every trial for this script: 

<trial UU_prac_green>
/ ontrialbegin = [values.primecategory="Unpleasant"; values.targetcategory="Unpleasant"]
/ ontrialbegin = [
values.primeitemnumber = list.UU_prac_primes.nextvalue;
values.targetitemnumber = list.UU_prac_targets.nextvalue;
]
/ ontrialbegin = [trial.UU_prac_green.insertstimulustime(shape.eraser, (values.primeduration))]
/ ontrialbegin = [trial.UU_prac_green.insertstimulustime(text.UnpleasantTarget, (values.primeduration + values.pt_isi))]
/ ontrialend = [trial.UU_prac_green.resetstimulusframes()]
/ stimulustimes = [0 = CSNegPrimes_green]
/ beginresponsetime = values.primeduration + values.pt_isi
/ responseinterrupt = immediate
/ monkeyresponse = (18, 23)
/ isvalidresponse = [trial.UU_prac_green.response==values.responsekeyUnpleasant || trial.UU_prac_green.response == values.responsekeyPleasant]
/ iscorrectresponse = [trial.UU_prac_green.response == values.responsekeyUnpleasant]

/ ontrialend = [values.prime = picture.CSNegPrimes_green.currentitem; values.target = text.UnpleasantTarget.currentitem]

/ posttrialpause = values.iti
/ errormessage = true(errorfeedback, 500)
</trial>

How do I do this? I created a text element then tried to insert it before the / ontrialbegin = [trial.UU_prac_green.insertstimulustime(shape.eraser, (values.primeduration))] line but the closest I could get was showing a fixation cross, followed by the target stimulus without the prime showing in between.

Thanks,
Luke
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greeny - 7 Years Ago
Dave - 7 Years Ago
             Thanks Dave
Greeny - 7 Years Ago
ilanagratch - 7 Years Ago
                     + x [quote] [b] ilanagratch - Monday, November 27, 2017...
Dave - 7 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search