Dual Task / BCE simultaneous keyboard response collection
Beautiful, helpful people!
I am working on a dual task backward crosstalk effect (BCE) experiment. The basic setup is simple, and I think this works well enough via the block loop table.
I present a fixation dot, to the left of the fixation dot appears a number, and after a given SOA (one of three possible SOAs), a second number appears to the left of the fixation dot.
The participant's task is to decide for both numbers whether they're odd or even.
They react to the first number with their left hand: press the y key for even numbers, and the x key for odd numbers (German keyboard layout).
They then react to the second number with their right hand: press the n key for even, the m key for odd numbers.
So far, so simple. Troublesome is the response collection. The response collection for Task 1 (the left number) has to start as soon as the first number is presented, and has to go on when the second numer (Task 2) is added. I have to be able to collect two responses to two tasks at the same time and I have no idea where to start with this. The only idea I have so far is that it could have something to do with coroutines, but otherwise, I'm at a blank.
I have Task 1 on a sketchpad, for the duration of [soa], then paint a second sketchpad with Task 1 and Task 2 on it. But when I put the keyboard_response between the two sketchpads, Task 2 won't appear until the keyboard response time window is over, which is much too late.
Plus, it has to be ensured that subjects respond to Task 1 first. If they press a key with their right hand first, and then with their left hand, the trial has to be marked as incorrect.
Any input is greatly appreciated. Thank you so much for your time.