Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

experiment.py 793 B

123456789101112131415161718192021222324252627282930313233
  1. from zmq_socket import ZMQsocket
  2. from time import sleep, time
  3. remote_ip = '10.142.20.154'
  4. print('Make sure the ports match with Pupil Capture Remote Plugin and the one in zmq_pocket.py')
  5. port = '50020'
  6. socket = ZMQsocket()
  7. socket.connect()
  8. # socket.start_calibration()
  9. # Grab the time module for timesync
  10. time_fn = time
  11. # Sync time
  12. print(socket.set_time(time_fn))
  13. # # Start the notifications puglin
  14. socket.notify({'subject': 'start_plugin', 'name': 'Annotation_Capture', 'args': {}})
  15. #
  16. socket.start_recording() # commenting this out to test something, needs to be uncommented later.
  17. sleep(1.)
  18. # Send some annotations
  19. socket.annotation('start_trial', 0)
  20. sleep(5.) # sleep a bit
  21. socket.annotation('end_trial', 0)
  22. sleep(1.)
  23. # Finish up
  24. socket.stop_recording()
  25. print('Script completed.')