# *key_resp_2* updatesif t >= ONSET+1 and key_resp_2.status == NOT_STARTED:# keep track of start time/frame for laterkey_resp_2.tStart = t # underestimates by a little under one framekey_resp_2.frameNStart = frameN # exact frame indexkey_resp_2.status = STARTED# keyboard checking is just startingkey_resp_2.clock.reset() # now t=0elif key_resp_2.status == STARTED and t >= (ONSET+1 + ONSET+3.068):key_resp_2.status = STOPPEDif key_resp_2.status == STARTED:theseKeys = event.getKeys(keyList=['v', 'b'])if len(theseKeys) > 0: # at least one key was pressedif key_resp_2.keys == []: # then this was the first keypresskey_resp_2.keys = theseKeys[0] # just the first key pressedkey_resp_2.rt = key_resp_2.clock.getTime()# was this 'correct'?if (key_resp_2.keys == str(corrAns)): key_resp_2.corr = 1else: key_resp_2.corr=0
for event in keyboard.getEvents(event_type=EventConstants=KEYBOARD_RELEASE):
I am unsure about how to modify the .yaml file to enable full screen,
in this task participants are already holding down the response buttons at the start of the trial, and then .... cues participants to lift one of two fingers.
One more thing, I would like to add a code to check that the two keys ('v' and 'b') are pressed at the same time before the beginning of each trial, could you help with that?
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/745541bc-5b62-4a5a-940a-cb9b7af3add9%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/A4BQY-GIpS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
1) For each trial, when the + screen is presented, wait until both 'v' and 'b' are pressed before continuing.
2) Since both both 'v' and 'b' are pressed, then you want to use the first one of these 2 key releases as the response during the short trial period? (so the presses must occur during the + screen, which will therefore only allow for a release of one of the 2 keys during the fast trial duration.
3) If nether 'v' and 'b' have been released by the subject when the trial end blue screen is displayed, do you want the blue screen to stay on until one of the 2 keys is released, or timeout and record a trial with no response?
4) If you want a timeout, then that means when the next trial starts and the + screen is displayed, both 'v' and 'b' keys may already still be pressed. Do you want the trial to immediately just start then? This would seem odd to me, so I assume you want to wait at the end of each trial until at least one of the two keys has been released?
Thank you Sol! I really appreciate your help. Will test it and let you know how I get on.
Idalmis
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/A4BQY-GIpS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/e400d5ef-76a1-4d25-8a78-346d8a4d940a%40googlegroups.com.
I'm trying to print response_event.key & response_event.time to find out why / at what point the key release responses and RT are not recorded, but after the first trial I get an error message saying that the object response_event has no attribute 'key' / 'time'.
However, the response_event object has already been defined as:
response_event = iokeyboard.getReleases (keys = ['v', 'b'])
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/A4BQY-GIpS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/31944f55-b6c8-42cd-a727-4ba0f2101b39%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/A4BQY-GIpS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/3cd7d0f3-c1f1-4a26-8909-0be06b0ed435%40googlegroups.com.