Controlling Trial Duration


Author
Message
ChrisS
ChrisS
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 9, Visits: 27
Hi everyone,

My paradigm requires participant respond to particular visual targets in a block of trials. When they correctly buttonpress in response to the presentation of the target, a short 500ms sound will be played as feedback for correct response.

I want the trials to run its duration (1500ms) when participants button press in response to a stimuli.

However with the script I have so far..... as soon as the participant button presses in response to a stimuli, the stimuli disappears for the remainder of trial duration and is then followed by the short feedback sound.

I need the visual stimuli to stay on the screen for 1500ms when participant button presses. Does anyone know how to write a trial script for this?

Here is what I have so far. Thank you for taking the time to help me with this!

********************************************************************************
TRIALS
********************************************************************************

<trial green>
/ trialduration = 1500
/ stimulustimes = [0= green; 0 = greenmarker]
/ validresponse = (" ",noresponse,"p")
/ correctresponse = (" ")
/ responsetrial = (" ",correctfeedback1)
/ responsetrial = (noresponse,incorrectfeedback1)
/ responsetrial = ("p",pausetrial)
</trial>

<trial red>
/ trialduration = 1500
/ stimulustimes = [0= red; 0 = redmarker]
/ validresponse = (" ",noresponse,"p")
/ correctresponse = (noresponse)
/ responsetrial = (noresponse,correctfeedback2)
/ responsetrial = (" ",incorrectfeedback2)
/ responsetrial = ("p",pausetrial)
</trial>

<trial pausetrial>
/ stimulusframes = [1 = pausetext; 1 = pausemarker]
/ validresponse = ("p")
</trial>

<text pausetext>
/ items = ("Have a break!")
/ position = (50%, 50%)
/ valign = center
/ fontstyle = ("Arial", 6.00%, false, false, false, false, 5, 1)
/ txcolor = (255, 255, 255)
/ txbgcolor = (0,0,0)
</text>

<trial correctfeedback1>
/ stimulustimes = [0 = correctpicture; 0 = correctsound; 0 = correctfeedbackmarker1]
/ timeout = 500
/ validresponse = (noresponse)
</trial>

<trial incorrectfeedback1>
/ stimulustimes = [0 = incorrectpicture; 0 = incorrectfeedbackmaker1]
/ timeout = 500
/ validresponse = (noresponse)
</trial>

<trial correctfeedback2>
/ stimulustimes = [0 = correctpicture; 0 = correctfeedbackmarker2]
/ timeout = 500
/ validresponse = (noresponse)
</trial>

<trial incorrectfeedback2>
/ stimulustimes = [0 = incorrectpicture; 0 = incorrectfeedbackmarker2]
/ timeout = 500
/ validresponse = (noresponse)
</trial>

<text break>
/ items = break
/ position = (50%, 50%)
/ valign = center
/ fontstyle = ("Arial", 6.00%, false, false, false, false, 5, 1)
/ txcolor = (255, 255, 255)
/ txbgcolor = (0,0,0)
</text>

<item break>
/ 1 = "Have a break!"
</item>

<trial break>
/ stimulustimes = [0 = break; 0 = breakmarker]
/ validresponse = ("p")
</trial>



********************************************************************************
BLOCKS
********************************************************************************

<block one>
/ trials = [1-20=noreplace(green,green,green,green,green,green,green,green,green,green,red,red,red,red,red,red,red,red,red,red)]
</block>

<block two>
/ trials = [1=break;2-21=noreplace(green,green,green,green,green,green,green,green,green,green,red,red,red,red,red,red,red,red,red,red)]
</block>

<block three>
/ trials = [1=break;2-21=noreplace(green,green,green,green,green,green,green,green,green,green,red,red,red,red,red,red,red,red,red,red)]
</block>

<block four>
/ trials = [1=break;2-21=noreplace(green,green,green,green,green,green,green,green,green,green,red,red,red,red,red,red,red,red,red,red)]
</block>

<expt>
/ blocks = [1=one; 2=two; 3=three; 4=four]
</expt>

*********************************************************************************

<defaults>
/ screencolor = (0, 0, 0)
</defaults>




GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
ChrisS - 11 Years Ago
Dave - 11 Years Ago
ChrisS - 11 Years Ago
Dave - 11 Years Ago
                     Hi Dave, I tried your suggestions regarding using the...
ChrisS - 11 Years Ago
                         What exactly does "it didn't seem to work" mean? Please be as specific...
Dave - 11 Years Ago
                             Hi Dave, Sorry. I meant the response port code "00001001" which...
ChrisS - 11 Years Ago
                                 Start small. Set up a simple test script that simply does: <block...
Dave - 11 Years Ago
                                     Thanks Dave I'll give that a go! Much appreciated! :) Chris
ChrisS - 11 Years Ago
                                         IT WORKED!!! AWESOME!!! :) THANKS HEAPS DAVE! Chris
ChrisS - 11 Years Ago
                                             Wonderful!
Dave - 11 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search