experiment variable is deleted when used.
I tried to define a variable that I will use throughout my experiment for defining the time a stimulus is shown.
The way I do this is by placing an inline script at the start of my experiment, in which I run the following code:
and on a sketchpad I do the following:
But when I try to run my experiment I get the following error:
and when I look at the variable inspector I see the following:
The strange thing however is that when I do not use the variable (set the duration to some number), the variable can be seen:
What is happening and how can I solve this?
Thanks in advance!