Hi Dave,
I tried your suggestions regarding using the /responsemesssage attribute in the trial and adding an additional port code which I called pressmarker (see TRIAL section and MARKERS section below) but it didn't seem to work. Any ideas why?
******************************************************************************
STIMULI
******************************************************************************
<picture green>
/ items = green
/ size = (75%, 75%)
/ valign = center
/ position = (50%, 50%)
/ erase = false
</picture>
<item green>
/ 1 = "green.jpg"
</item>
<picture red>
/ items = red
/ size = (75%, 75%)
/ valign = center
/ position = (50%, 50%)
/ erase = false
</picture>
<item red>
/ 1 = "red.jpg"
</item>
<picture fixcross>
/ items = fixcross
/ size = (50%,50%)
/ valign = center
/ position = (50%,50%)
</picture>
<item fixcross>
/ 1 = "fixcross.png"
</item>
<sound correctsound>
/items = correctsound
</sound>
<item correctsound>
/ 1 = "trainwhistle.wav"
</item>
<picture correctpicture>
/ items = correctpicture
/ size = (100%, 100%)
/ valign = center
/ position = (50%, 50%)
</picture>
<item correctpicture>
/ 1 = "blacksq.png"
</item>
<picture incorrectpicture>
/ items = incorrectpicture
/ size = (100%, 100%)
/ valign = center
/ position = (50%, 50%)
</picture>
<item incorrectpicture>
/ 1 = "blacksq.png"
</item>
********************************************************************************
MARKERS
********************************************************************************
<port greenmarker>
/ port = lpt1
/ subport = data
/ items = ("00000001")
</port>
<port redmarker>
/ port = lpt1
/ subport = data
/ items = ("00000100")
</port>
<port correctfeedbackmarker1>
/ port = lpt1
/ subport = data
/ items = ("00000010")
</port>
<port incorrectfeedbackmarker1>
/ port = lpt1
/ subport = data
/ items = ("00000011")
</port>
<port correctfeedbackmarker2>
/ port = lpt1
/ subport = data
/ items = ("00000101")
</port>
<port incorrectfeedbackmarker2>
/ port = lpt1
/ subport = data
/ items = ("00000110")
</port>
<port breakmarker>
/ port = lpt1
/ subport = data
/ items = ("00000111")
</port>
<port pausemarker>
/ port = lpt1
/ subport = data
/ items = ("00001000")
</port>
<port pressmarker>
/ port = lpt1
/ subport = data
/ items = ("00001001")
/ erase = true ("00000000")
</port>
********************************************************************************
TRIALS
********************************************************************************
<trial green1>
/ trialduration = 1500
/ stimulustimes = [0= green; 0= greenmarker]
/ validresponse = (" ",noresponse,"p")
/ correctresponse = (" ")
/ responsemessage = (" ", pressmarker, 100)
/ responsetrial = (" ",correctfeedback1)
/ responsetrial = (noresponse,incorrectfeedback1)
/ responsetrial = ("p",pausetrial)
</trial>
<trial green2>
/ trialduration = 1500
/ stimulustimes = [0= green; 0= greenmarker]
/ validresponse = (" ",noresponse,"p")
/ correctresponse = (noresponse)
/ responsemessage = (" ", pressmarker, 100)
/ responsetrial = (noresponse,correctfeedback2)
/ responsetrial = (" ",incorrectfeedback2)
/ responsetrial = ("p",pausetrial)
</trial>
<trial red1>
/ trialduration = 1500
/ stimulustimes = [0= red; 0= redmarker]
/ validresponse = (" ",noresponse,"p")
/ correctresponse = (noresponse)
/ responsemessage = (" ", pressmarker, 100)
/ responsetrial = (noresponse,correctfeedback2)
/ responsetrial = (" ",incorrectfeedback2)
/ responsetrial = ("p",pausetrial)
</trial>
<trial red2>
/ trialduration = 1500
/ stimulustimes = [0= red; 0= redmarker]
/ validresponse = (" ",noresponse,"p")
/ correctresponse = (" ")
/ responsemessage = (" ", pressmarker, 100)
/ responsetrial = (" ",correctfeedback1)
/ responsetrial = (noresponse,incorrectfeedback1)
/ responsetrial = ("p",pausetrial)
</trial>
<trial pausetrial>
/ stimulusframes = [1 = break; 1 = pausemarker]
/ validresponse = ("p")
</trial>
<picture break>
/ items = break
/ size = (100%, 100%)
/ valign = center
/ position = (50%, 50%)
</picture>
<item break>
/ 1 = "break.jpg"
</item>
<trial correctfeedback1>
/ stimulustimes = [0 = correctpicture; 0 = correctsound; 0 = correctfeedbackmarker1]
/ trialduration = 500
/ validresponse = (noresponse)
</trial>
<trial incorrectfeedback1>
/ stimulustimes = [0 = incorrectpicture; 0 = incorrectfeedbackmarker1]
/ trialduration = 500
/ validresponse = (noresponse)
</trial>
<trial correctfeedback2>
/ stimulustimes = [0 = correctpicture; 0 = correctfeedbackmarker2]
/ trialduration = 500
/ validresponse = (noresponse)
</trial>
<trial incorrectfeedback2>
/ stimulustimes = [0 = incorrectpicture; 0 = incorrectfeedbackmarker2]
/ trialduration = 500
/ validresponse = (noresponse)
</trial>
<trial break>
/ stimulustimes = [0 = break; 0 = breakmarker]
/ validresponse = ("p")
</trial>
********************************************************************************
BLOCKS
********************************************************************************
<block one>
/ trials = [1-50=noreplace(green2,red2)]
</block>
<block two>
/ trials = [1=break;2-51=noreplace(green2,red2)]
</block>
<block three>
/ trials = [1=break;2-51=noreplace(green1,red1)]
</block>
<block four>
/ trials = [1=break;2-51=noreplace(green1,red1)]
</block>
<expt>
/ blocks = [1=one; 2=two; 3=three; 4=four]
</expt>
*********************************************************************************
<defaults>
/ screencolor = (0, 0, 0)
</defaults>