Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Length of Key Depression
Length of Key Depression
Post Reply
Like
27
Length of Key Depression
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
CES
CES
posted 11 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 24,
Visits: 103
Is Inquisit able to measure the length of time that a participant depresses a key?
Reply
Like
27
CES
CES
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 24,
Visits: 103
To clarify, this would be how long they have held a key down for.
Reply
Like
25
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
Yes and no. Inquisit 4 (*not Inquisit 3*) is able to register key *presses* as well as key *releases*. So what you would have to do is
- register the key press in a <trial>
- store the time when the key was pressed
- register key release in a <trial>
- store the time when key was released
- derive press duration as 'time of release' minus 'time of press'
<values>
/ timeofpress = 0
/ timeofrelease = 0
</values>
<expressions>
/ pressduration = values.timeofrelease-values.timeofpress
</expressions>
<block myblock>
/ trials = [1-4=sequence(press,release,duration)]
</block>
<trial press>
/ stimulusframes = [1=presstxt]
/ ontrialend = [values.timeofpress=script.elapsedtime]
/ validresponse = (57)
</trial>
<trial release>
/ stimulusframes = [1=releasetxt]
/ ontrialend = [values.timeofrelease=script.elapsedtime]
/ validresponse = (-57)
</trial>
<trial duration>
/ stimulusframes = [1=durationtxt]
/ validresponse = (noresponse)
/ trialduration = 1000
</trial>
<text presstxt>
/ items = ("Press SPACEBAR")
</text>
<text releasetxt>
/ items = ("Release SPACEBAR")
</text>
<text durationtxt>
/ items = ("Duration: <%expressions.pressduration%>")
</text>
Edited
11 Years Ago by
Dave
Reply
Like
25
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
27
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search