Unfortunately when I add the code in the beginning and change the key_resp appropriately, it won’t run and generates this error code:
thisExp.addData(‘RT’,round(mouseResp.rt*1000))
AttributeError: ‘Mouse’ object has no attribute ‘rt’
Experiment ended.
This is the same for when I insert this code:
thisExp.addData(‘StimuliResp.RT in ms’, StimuliResp.rt * 1000)
with the stimuliresp altered as needed. I got this from this forum How can I measure reaction time in milliseconds?
Any ideas?