Passing responses from one PsychoPy routine to another

谁都会走 提交于 2020-01-06 02:48:46

问题


I am trying to send the value of a response time (e.g. key_resp_2.rt) to a later routine.

I am new to PsychoPy and am unsure how to do this. I have been unsuccessful searching Google for an answer...


回答1:


A later routine can refer to previous variable by name in a Code component. i.e. in that code component, you could insert code like this, say to update a text stimulus depending on a previous reaction time:

if key_resp_2.rt < 0.200:
    myTextStim.setText("Well done, quite fast.")

But you would need to specify what you want to do to get more specific help. Cheers.



来源:https://stackoverflow.com/questions/23910370/passing-responses-from-one-psychopy-routine-to-another

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!