Replies: 2 comments
-
I'm going to convert this to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think loop_function can achieve your function. I have a similar structure here #2580 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a design where I need participants to indicate switches in bi-stable perceptions. After they settle on one of the 2 perceptions, they should press a key to end the trial. Let's suppose they indicate percept 1 by pressing L, percept 2 by A, and after settling on one percept they press SPACE. Essentially, I want the trial to end on SPACE but before they press it, I want the data of switches (L-A) to be recorded too.
How do I go about coding that?
var trial = { type: 'image-keyboard-response', stimulus: 'img/ambi.png', choices: ['l', 'a', 32], prompt: "Press SPACE when you retain one of the percepts", };
In this code I want the trial to end only after pressing SPACE while recording other keypresses as well.
Thanks,
Revati
Beta Was this translation helpful? Give feedback.
All reactions