'How to create a counter/stopwatch in Psychopy
I am learning how to create Psychology experiments using Psychopy or OpenSesame. Currently, I am trying to create a Psychomotor Vigilance Task where a counter/stopwatch will appear and the participants have to press a button to stop it. How do I create this counter/stopwatch?
Please point me in the general direction and try not to provide me with the answers since I want to try to figure it out myself. Thanks!
Solution 1:[1]
You could provide an image to represent the clock face and another to represent the hand and then change the orientation of the hand (using set every frame) according to time (ori set to $t*6 would rotate 360deg every 60s). Tips:
- make your image for the hand transparent on areas where you want the clock face to be visible and position it in your image so that the base of the hand is in the centre of the image
- you could give your hand a 'ticking' appearance by rounding the orientation
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Jon |