TYL
TYL

Reputation: 1637

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!

Upvotes: 0

Views: 393

Answers (1)

Jon
Jon

Reputation: 1223

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

Upvotes: 2

Related Questions