Hi all,
Im aware there are similar posts but after having followed the guidance given in this to no avail, I have created a new post. I am using builder (to create basic template), code components and coder to edit my current experiment on Mac OSX 10.12, PsychoPy 2.
The experiment is as previously posted - a simple staircase 1up 3 down for 80% coherence accuracy in dot motion. I want the coherence level to alter in response to participants perception, and the trial responses to be left, right, up or down at random (the direction does not matter to me, it is simply to randomise).
As previous, I am having difficulty linking the staircase loop to the coherence level (i have used $level and this simply gives me dot motion at 1.0 coherence - despite my loop start val being 0.5). I have also tried $thisStair, scoured the manual and demos to no avail. I have a code component to determine random directions as below which shouldn’t ( I hope) interfere:
randRot = random.randint(0,3)*90 # choose a random rotation
if (randRot) == 0:
correctResp = ‘right’
elif (randRot) == 90:
correctResp = ‘down’
elif (randRot) == 180:
correctResp = ‘left’
elif (randRot) == 270:
correctResp = ‘up’
In the dot component, I have $level (which i assume is incorrect or I have missed something) as the coherence, direction is ‘randRot’ as per my code component and my keyboard response is correctly linked. Im sure it is something minor that I have missed!
As I mentioned, my current experiment displays dots moving either left, right, up or down and responds to the correct keys, however there is no adaptive change in coherence - any help much appreciated if you can see where I may have gone wrong
Thanks!