aolabNeuro / brain-python-interface

Other
4 stars 2 forks source link

state machine startup seems messy from screen sensor perspective #47

Closed leoscholl closed 3 years ago

leoscholl commented 3 years ago

like the framerate takes some time to settle after the fsm starts. image

black dots are clock timestamps, orange is photodiode (analog) and blue is photodiode (digital). clock starts way before the screen does anything, and then the screen has several frames where it does nothing before jittering a lot.

could maybe add a special state at the beginning of the experiment while it waits?

leoscholl commented 3 years ago

added a 1 second delay where only two clock pulses are sent in c198e86819547757ce3a8cdf6fbff16175dab8a9

leoscholl commented 3 years ago

updated sync procedure to have a variable delay at reduced frame rate in ee837fae8853f87e45209d43a49b8499944a94b3 also changed sync procedure so that the clock always reflects the cycle count

image