Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first stimulus flip in photodiode sometimes late relative to signals stimulus onset time #302

Open
synapticlee opened this issue May 12, 2020 · 2 comments

Comments

@synapticlee
Copy link
Contributor

Hi, I am still working on adding details but wanted to flag this first (initially flagged on #rigbox-signals channel in the cortexlab slack).

In a fair amount of trials, it seems that the the first flip of the photodiode is >100ms late of the signals-intended onset of the stimulus. It's unclear whether it could be a photodiode issue, but if true would suggest that the actual stimulus onset is 100ms later than the intended onset. In an example session with a good photodiode trace, this still occurred in 10% of trials, with some trials experiencing even 200-400ms delay (see histogram below). The flip is apparently always late or on time, and never early.

This was also observed by @pipcoen and @petersaj who use different rigs and expdefs. It was suggested this might be because I also have a stimulus onset tone, and perhaps signals could "wait" for the tone before delivering the stimulus.

image

image

Will add more details about specific expdef and rigbox versions and timeline etc. soon and whether this is consistent across sessions with different expdefs I have.

This particular session is from expdef julieWorldQuiescent

@synapticlee
Copy link
Contributor Author

I suggest this is a high priority issue because it means up to 100-200ms after stimulus onset, which is a typical area of integration for looking at stimulus-related activity, there might not be an actual stimulus on the screen.

@synapticlee
Copy link
Contributor Author

synapticlee commented May 12, 2020

the flip does respect the stim window update times (thanks lauren for the suggestion) though, so it's clear (?) the stimulus really was "late", but still unclear why
blue - photodiode; black - stim window update times; orange- audio command (TL); red - stimulus onset time according to block structure
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant