simultaneous button press


Author
Message
sjstran12
sjstran12
Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)
Group: Awaiting Activation
Posts: 8, Visits: 26
Hey,

I am trying to make it so two buttons will need to be pressed for the nextkey. How can I do this?

Thanks 
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
In Inquisit, a <trial> registers a *single* response. Thus, it is not possible to do this. The next-best thing you can do is run two trials in sequence -- one to register the 1st button press, another one to register the 2nd.

sjstran12
sjstran12
Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)
Group: Awaiting Activation
Posts: 8, Visits: 26
Thank you. I guess I'll have to make due with the one
sjstran12
sjstran12
Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)
Group: Awaiting Activation
Posts: 8, Visits: 26
Is it possible to have the participant press one button and be required to press another button within x number of milliseconds in order to give the correct response?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Yes, but as with your initial request above, you need two <trial> elements to do that. You can do the response evaluation via /iscorrectresponse a la

/ iscorrectresponse = [... && trial.2ndtrial.latency < 2000]

sjstran12
sjstran12
Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)
Group: Awaiting Activation
Posts: 8, Visits: 26
Is this what you mean? I want it so the valid response is this [("m") && trial.late.latency < 2000] but it wont allow me to put that in the validresponse

<trial late>
/ validresponse = ("z")
/timeout = 15000
</trial>

< trial  era >
/stimulusframes = [1=era, erastim]
/timeout = 3500
/validresponse = ("m")
/ iscorrectresponse = [("m") && trial.late.latency < 2000]
/responsetrial = ("m", method)
</trial>



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Your syntax in the /iscorrectresponse attribute is incorrect. It ought to be

/ iscorrectresponse = [trial.late.response == *ENTER THE NUMERICAL KEYBOARD SCANCODE FOR M HERE* && trial.late.latency < 2000]

For the appropriate scancode to enter above, see the "Keyboard Scan Codes" topic in the documentation as well as Tools -> Keyboard Scancodes...

sjstran12
sjstran12
Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)
Group: Awaiting Activation
Posts: 8, Visits: 26
I got an error that says invalid text

<trial late>
/ validresponse = (50)
/timeout = 15000
</trial>


< trial  era >
/stimulusframes = [1=era, erastim]
/timeout = 3500
/validresponse =  [trial.late.response == (44) && trial.late.latency < 2000)]
/responsetrial = ("m", method)
</trial>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
#1: You need to use */isvalidresponse*, not */validresponse*
#2: Your syntax is still wrong. It ought to be:

/ isvalidresponse =  [trial.late.response == 44 && trial.late.latency < 2000)]
sjstran12
sjstran12
Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)Partner Member (846 reputation)
Group: Awaiting Activation
Posts: 8, Visits: 26
no more error messages but pressing the buttons at the same time does nothing. 

<trial late>
/isvalidresponse = [(50)]
</trial>

< trial era >
/stimulusframes = [1=era, erastim]
/timeout = 15000
/ isvalidresponse = [trial.late.response == 44 && trial.late.latency < 2000]
/responsetrial = (" ", method)
</trial>

< trial method >
/stimulusframes = [1=iorm, iorm2]
/timeout = 15000
/ validresponse = ("z" "m")
/branch = [(openended.open)]
</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