Changing the duration of a sketchpad depending on the response time
I have some issue to access the response time value for compute the duration of a sketchpad.
In my experiment there is a Keyboard_response (called "risposta") with a duration of 10.000 (10s).
After that I have a sketchpad (ISI) and I want to show it for a duration of 10.000 - response_time_risposta.
I added a inline script ISI_duration in wich I creata a variable to compute the duration in this way
But OpenSesame says: NameError: name 'response_time_risposta' is not defined
I cannot find a way to access the variable "response_time_risposta", I saw it in the variable inspector tool.
What is the correct way to do it?
Thanks a lot,
Here is my experiment's structure