![]() PrematureResponses_baseline1.tStart = t # local t and not account for scr refresh PrematureResponses_ameNStart = frameN # exact frame index If prematureResponses_baseline1.status = NOT_STARTED and tThisFlip >= 0.0-frameTolerance: If len(key1_baseline1.keys) > 3: #change for 4 buttons on cedrus lumina _key1_baseline1_allKeys.extend(theseKeys) TheseKeys = key1_baseline1.getKeys(keyList=, waitRelease=False) If key1_baseline1.status = STARTED and not waitOnFlip: Win.callOnFlip(key1_baseline1.clearEvents, eventType='keyboard') # clear events on next screen flip ![]() Win.callOnFlip(key1_) # t=0 on next screen flip Win.timeOnFlip(key1_baseline1, 'tStartRefresh') # time at next scr refresh Key1_baseline1.tStartRefresh = tThisFlipGlobal # on global time Key1_baseline1.tStart = t # local t and not account for scr refresh Key1_ameNStart = frameN # exact frame index # keep track of start time/frame for later If key1_baseline1.status = NOT_STARTED and tThisFlip >= 0-frameTolerance: Thank you very much, Sónia # *key1_baseline1* updates Please find below what the code looks like. I defined the 4 keys pressing in one routine and the premature responses in another in the builder.Ĭan you help me doing this? I search previous messages but couldn’t figure it out with the getKeys function. ![]() However, I want to measure if the participant releases any key before the target onset - premature responses. In the task, the participant needs to simultaneously press and hold 4 keys to start the experiment and then release and press one of the keys again accordingly to a target position on the screen. Right now I’m testing it with a keyboard but I want to adapt it later to a Cedrus Lumina response pad. ![]() I’m designing an fMRI task with PsychoP圓 on Windows 10. ![]()
0 Comments
Leave a Reply. |