Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Vertical Sync sensor
(view source)
Revision as of 12:33, 16 November 2022
109 bytes added
,
12:33, 16 November 2022
→Python/PsychoPy
Line 106:
Line 106:
rect = visual.Rect(win, .15, .25, pos=(-1, 1),fillColor="white", units="norm")
rect = visual.Rect(win, .15, .25, pos=(-1, 1),fillColor="white", units="norm")
+
# wait 5 sec for python to become stabel
+
core.wait(5)
+
ser.flushInput()
# define treshold for OFF by sending a code
# define treshold for OFF by sending a code
ser.write(b'1')
ser.write(b'1')
Line 117:
Line 120:
b = ser.read()
b = ser.read()
tik = time.perf_counter()
tik = time.perf_counter()
−
# show
result, 60Hz/~0.016s 120Hx/~0.008s
+
# show
delay after a flip
−
print("your timing: {}s".format(tik-tok))
+
print("your timing
after a flip
: {}s".format(tik-tok))
+
# as a remark 60Hz/~0.016s 120Hz/~0.008s
## Cleanup Section
## Cleanup Section
Wiki-admin
Bureaucrats
,
Administrators
1,658
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version