

Psychopy repeat incorrect trial later on code#
In your keyboard component, you were using the variable CorrAns, which was actually corrAns in the spreadsheet. When you want maximal control and clean code (my favourite) 3. For example, Python, like many computer languages, is case-sensitive. If you are going to share experiments for others to check, please make sure they can actually run: this one contained quite a few errors unrelated to the problem you reported.Hence it is not clear that this is a PsychoPy bug, rather than errors in the reported refresh rate via xrandr and the OS - there have been a number of issues reported about this under Ubuntu. PsychoPy can measure the screen refresh rate, but can't set it. That isn't necessary in this experiment (and if it wasn't there, an obvious error message would have helped isolate your problem early). PsychoPy measures the refresh rate as 60 Hz, not 144 Hz. You can delete the "msg = ''" line from the beginning experiment.thisTrial - a dictionary giving the parameters of the current. a trial) is repeated, both in terms of how many repeats are. This is why the feedback on the first trial is currently always blank. thisTrialN - which trial number within that repeat. You will learn to create an experiment on the PsychoPy builder view with. Otherwise, the text component will be displaying the value of msg from the *previous* trial, as it hasn't yet been updated. That way, the text component will be able to use the updated value of 'msg'. You need to move the code component ABOVE the text component on your feedback routine (right-click on it to shift it upwards).And in the begin routine, I have this line: tell psychopy that we know what the correct answer should be for each trial.
