Recording Response time with first keypress
I am fairly new to OpenSesame, but I am currently working on a predicted motion experiment, where the participant sees video where a ball moves from left to right but disappears behind and occlusion. The participant then has to click the Spacebar at the moment he/she expects the ball to reappear from behind to occlusion. My issue is that the trial does not stop on the first keypress but requires two keypresses to move on, and the response times it captures don't match up with the length of the trials. The experiment itself works, its just the data collection that I am having issues with. Thank you!
Comments
Hi,
My first thought is that you're simply collecting two key presses, for example because you have inadvertently set the duration of a
sketchpadto 'keypress', in addition to collecting a key press response during the trial. If that's not it, could you attach the experiment here so that we can take a look?Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
I attempted to remove the keypress for the sketchpad, but ideally I would like the trial to terminate when the key is pressed. Its not the end of the world if it doesn't work out that way but that's what I was shooting for. Ideally, I want the trial to start and the person to hit the spacebar at the expected time. The trial will terminate recording the timing of the keypress and move on to the next trial. I appreciate your help with this.
Hi Timothy,
What Sebastiaan suggests should not lead to the trial not being terminated on a key press. It just makes sure that your keyboard response is handling the keypresses and not the sketchpads. Anyway, I can't find any sketchpads in your experiment, so I can't really check. Is it possible that you use the media player? Is there an option in there to set the duration of it to
0? As far as I can tell, this would solve the issue.Eduard
Yes that is correct. I play a video with the media player and during the video they need to press a key to record their response time. It seems that when I set the duration of the media player to 0 it doesn't play at all. Thanks for your help
The beginning of the clip stays frozen on the screen, to clarify.
What media player do you use? Can you maybe send a screenshot?
of the video?
I am using VLC media player
Of the VLC media player interface in Opensesame.
Is this what you meant?
This is what my media player screen would look like
Do you have any suggestions on how I might record the response times during these video displays?
I haven't used this plugin and maybe I'm terribly wrong, but could the problem be in the "Call custom Python code on keypress" item? Looking at the
media_player_mpy.pyscript, it seems that it will jump to the custom code when the field is not empty. Obviously, there is nothing in the code, so it will "jump back" to the main window, but I have an inkling that that explains why two keypresses are required.What happens if you leave that menu blank and put
keypressas the Duration?This seemed to work! Thank you! Also, is the response time recorded in ms?
Hi @cesco and @Tpatrick , I tried to do as you say ("leave that menu blank and put
keypressas the Duration") but it still requires me to press a key twice (One to stop the video and another to log the response ).Could you please explain better how you solved it?
@AngeloPisanii I'm linking this to the same question that you asked here: https://forum.cogsci.nl/discussion/comment/30202/#Comment_30202
Please don't ask the same question in multiple threads! That way we don't waste anyone's time by answering the same question multiple times!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan , thank you for your reply. I asked other users here because they implemented a different procedure that worked for them. I tried the same, without success.
Please let me know if you have any suggestions.
Next time I will be careful not to highlight a difficulty in multiple posts.
Thank you