The timing between turning laser on and stimulus on

Hi Taylor,

The issue of synchronizing the laser with a stimulus presentation has come up before. Please see this explanation, which is still 100% valid. Basically, you should use approach #2 (update_display before turn_laser_on), but replace update_display with update_display_and_wait.

There was an about 45ms difference between photodiode on and laser on. The laser was on for 300ms but the stimulus was on for over 300ms even though the stimulus_on_duration was 300ms. It seems like it was waiting for the stimulus drawing to be completed before turning the laser on. I’ve also attached a figure of what the traces look like this time.

This is puzzling. Can you send me the definition of the photodiode_pixel_on macro? Actually, it’d probably be helpful to have the whole protocol that produced this result. Can you send that as well?

Thanks,
Chris