Sending All Key Presses to AcqKnowledge

OS: Windows 10.
PsychoPy version: PsychoPy v.2024.2.4. Presentation desktop (with PsychoPy) and acquisition/analysis laptop (with AcqKnowledge and Biopac Student Lab Pro software) are both running Windows 10. Also using a Biopac (not sure on the version/model).
Standard Standalone Installation?: Yes.
Do you want it to also run online?: No.
What are you trying to achieve?: Sending all key presses, regardless of if the key press is the correct answer or not, from PsychoPy routines to AcqKnowledge.
What did you try to make it work?: Played with changing the “Store” dropdown in the “Data” tab from all keys, first key, last key, etc. - this did not work.

Hello,

Apologies in advance for what might be a confusing post: there’s a lot of info and I’m trying to give just the important parts. Any help would be greatly appreciated!

I’m working on an experiment using the PsychoPy builder to run an Implicit Association Test (IAT). I’m having a bit of trouble with getting PsychoPy to output the key presses in the way I want.

In the IAT, participants press either the “e” or “i” key on the keyboard to sort faces and words. Participants also have to match the faces to positively- or negatively-valenced words, and the instructions for the matching changes throughout the blocks.

For this IAT experiment I have a welcome routine, an instruction routine, a trial routine, a feedback routine, and a goodbye routine. The routines work great except for the trial routine and feedback routine. I have two separate keyboard components in both the trial routine and the feedback routine: one is for when the “e” keyboard button is pressed, the other for when the “i” keyboard button is pressed. In my Excel sheets loaded in PsychoPy, I have a column labeled “CorrAns” denoting what the correct key press is for a given trial.

When the correct key is pressed, the correct response is recorded in AcqKnowledge and they will not get the feedback routine. This works great: I can see that the correct button is pressed and when it occured. When the incorrect key is pressed, the feedback routine is launched. The feedback routine begins with a red X on the screen, letting the participant know they’ve answered incorrectly. They will then need to the press the correct key to continue on to the next trial. This is where the trouble starts. In trials in which participants answer incorrectly, the incorrect response is the only one recorded in AcqKnowledge. When the participant goes to correct their response, I cannot see when they pressed the correct button.

Thus, PsychoPy is only outputting the first key press into AcqKnowledge. When the participant answers correctly, this is totally fine, because the participant never has to correct their answer! However, when the participant answers incorrectly, it doesn’t help me to only know when they answered incorrectly; I also need to know when they corrected their response.

How can I get PsychoPy to output all key presses?

Thank you!

Hello @rosebud

I guess we need more information about your routines and components to help you. Do you mind posting the relevant routines and components?

One thing, I can say right now. There is no need to use two keyboard-component to register two keys. Use just one keyboard-component listing all possible answers. Use the Store correct argument of the keyboard component to determine the correctness of the answer which is specified in a column of your condition-file. You seem to do this already.

Best wishes Jens.