Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shuffle and RT on response() #25

Open
atnplab opened this issue Sep 17, 2019 · 0 comments
Open

Shuffle and RT on response() #25

atnplab opened this issue Sep 17, 2019 · 0 comments

Comments

@atnplab
Copy link

atnplab commented Sep 17, 2019

Hi all!

I have an issue recording RT and selecting stimuli.
Concerning n.response I want to record RT from the time of presentation of the word e.g. "go" till the time the participant press "T". What I actually get is: 'exceeded time' as a response and a RT that is (I guss) the RT itself + the time_max of 4000. How can I get the correct RT and so the correct response?

Then I would like just shuffle "go", "back", "stop" for 6 times so that each word is presented two times in random orders but random.shuffle on 'stimulus' is not doing the job correctly. Any hints on this?
Many thanks :)

for trial in range(6): 
    stimulus = random.choice(["go", "back", "stop"]) 
    ISI = random.randrange(start=500, stop=2000, step=500)  


n.newpage("grey") 
n.write("+")  
n.refresh()  
n.time.wait(ISI)  

n.newpage()
n.write(stimulus)  
n.refresh()
response, RT = n.response(allow = ["T", "B", "G"], get_RT =True, time_max = 4000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant