How to record sound and button presses on the same trial?


Author
Message
AbigailNovick
AbigailNovick
Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)Respected Member (410 reputation)
Group: Forum Members
Posts: 25, Visits: 85
Hello,

I am trying to record audio and also record button presses on the same trial. I record sound using soundcapture, and record button presses using keyboard as the inputdevice. 

The problem is if I want to record what buttons subjects press by using validresponse, then the trial ends as soon as they press a keyboard button, thus truncating the recording. 

How do I continue recording even after a keyboard button has been pressed?

Thank you for your time,
Abby

current code below
<trial mytrial>
/ soundcapture = true
/ inputdevice = keyboard
/ stimulustimes = [0=target]
/ trialduration = 2000
/ validresponse =(23, 36, 37, 38)
</trial>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search