If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): MacOS Big Sur PsychoPy version (e.g. 1.84.x): 2020.2.10 Standard Standalone? (y/n) If not then what?:
**What are you trying to achieve?: I have a loop that ends based on a certain amount of time passing, and would like a visual countdown timer that counts down based on the time I have set for the entire loop, not just the current routine.
**What did you try to make it work?: I have tried using a textbox stimulus that has $round(10.0 - $loop_timer, ndigits = 1) in the text area, but I got the following error:
Experiment/verbal shaping experiment copy 2_lastrun.py", line 608, in
timer.setText(round(10.0 - loop_timer, ndigits = 1))
TypeError: unsupported operand type(s) for -: ‘float’ and ‘Clock’
Hi, I tried defining my loop timer in the EndRoutine of the routine right before my loop, but I still get the same error. What do you mean by signaling the end of the loop before I end the routine? The end loop is being executed because the loop and routine end at the time I have set, it’s just that the visual timer resets every time the loop resets.