Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 4 of 4

Thread: ... measure the time someone keeps a key pressed? (case 3006)

  1. #1

    ... measure the time someone keeps a key pressed? (case 3006)

    I've tried with "key release", but what I need to know is how long does the subject keep pressed the key, not the time he takes to react since the onset of the stimulus.
    I am working at a reproduction task of time perception: subjects have to keep a key pressed the same duration they believe a previous sound lasted.
    Can you help me? Thanks a lot!
    Last edited by jason_reed; 08-26-2015 at 05:17 PM.

  2. #2
    Join Date
    Feb 2013
    Posts
    22
    Hi Luigi. I think you should be able to measure the key press time as you wish by using Key Release RTs. This method in DirectRT is actually designed for paradigms in which a participant is supposed to press and hold one key before a stimulus is presented, then release it and press another key as quickly as possible. However, I think you could simply ignore the RT for the second key press and focus only on the release RT. For example, you could have your participants press the space, then present a simple text stimulus that said "Press the space now". DirectRT would think that this was when they were supposed to release the space and press something else, and so it would start recording an RT. You could then use this release RT as your measure.

    To have DirectRT measure a release time, you'll need to replace the standard "rt:" in your input file's time field with "rtr:". I've included a simple single trial example of this. When this input file comes up, DirectRT will first display "Press space now" for 2 second, cuing your participant to begin holding space. Then, it will display "Hold the space bar for the duration you believe the previous sound played." DirectRT will check to see if any key is currently being held. It will then begin recording how long it takes the participant to release that key and write the result to the data file in a column labeled "Release". When the subject is done, they will press enter to move the experiment along (this will also record an RT, but you can ignore this in your analysis and simply use the release RT).

    I hope this helps!
    Attached Files Attached Files

  3. #3
    Join Date
    Aug 2015
    Posts
    2
    Hello! As a follow up to this thread, is it also possible to measure the key that was pressed (participants are allowed to choose) together with the duration of keypress?

    Thank you!

    Jessica

  4. #4
    Join Date
    Feb 2013
    Posts
    1,093
    The key that was pressed should be noted in the output files. The Resp column shows the keycode from the input file of the key that was pressed and the Name column shows the actual name of that key.
    Jason Reed
    Empirisoft Software Support Specialist

Similar Threads

  1. Presentation time limit in addition to subsequent KeyPress time
    By Mariazinha in forum DirectRT Older Versions: General Questions
    Replies: 2
    Last Post: 01-11-2010, 04:07 AM
  2. Key release time and reaction time with simultaneous responses
    By Shannon in forum DirectRT Older Versions: General Questions
    Replies: 3
    Last Post: 05-28-2008, 11:24 AM
  3. How to measure THIS TIME in thought listing?
    By fantacier in forum MediaLab Older Versions: How Do I...
    Replies: 4
    Last Post: 09-29-2007, 12:38 PM
  4. Measure RT and go to next page
    By psycproject in forum MediaLab Older Versions: How Do I...
    Replies: 2
    Last Post: 03-28-2007, 06:43 PM
  5. Unit of measure for reaction times
    By jarvis24 in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 11-24-2005, 11:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •