Description of the problem: When i try to run my experiment online, i get the following error: “ReferenceError: position is not defined”, but it runs well locally. To fix it, i tried to set the position parameter to set every repeat, because it is linked with an excel file, but when i do this, i get the following error:
As you can see, the position of “baja” is constant, so I think that could be the problem, but if I change it to set every repeat, I get the error listed earlier.
File "C:\Users\usuario\Documents\Psychopy\test\test_lastrun.py", line 942, in <module>
baja.setPos([invertpositionx, invertpositiony])
NameError: name 'baja' is not defined
I am sorry, I was tweaking some parameters to see if I could do something to work, so I tried changing the position to another excel column that you can see in the excel image above: “[invertpositionx, invertpositiony]”. Thats why in the image of baja you see “[positionx, positiony]” while in the error you see “[invertpositionx, invertpositiony]”, but when I change it to how it used to be, I get the same error:
File "C:\Users\usuario\Documents\Psychopy\test\test_lastrun.py", line 942, in <module>
baja.setPos([positionx, positiony])
NameError: name 'baja' is not defined
As you can see in the excel, I stablished the coordinates separatly. That is because before this error, I got an error related to the experiment not being able to convert the entire coordinate to a position, so I write it like this.
Does it work if you use a fixed coordinate like [0,0] ? It work offline if I use [0,0] as a coordinate, but only if I set it to constant. Sadly it does not work online, it get the “position is not defined” error.
Does it work if you set the coordinates Each Frame? The same happens. It works fine offline, but does not work online.
Does it work if you set the start time to, say, 0.5? It does not work if I set the start time to any number while the position is set every repeat.
Does it work if you set the Stop time to blank It does not work setting the Stop time like this neither.
This is the error that I get everytime I use any of this settings while using (0, 0) as position set every repeat.
File "C:\Users\usuario\Documents\Psychopy\test\test_lastrun.py", line 942, in <module>
baja.setPos((0,0))