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

Sync offset at SMA 2ms #31

Open
ddvoraknyu opened this issue Jan 22, 2020 · 3 comments
Open

Sync offset at SMA 2ms #31

ddvoraknyu opened this issue Jan 22, 2020 · 3 comments

Comments

@ddvoraknyu
Copy link

ddvoraknyu commented Jan 22, 2020

Hi,
I noticed that there is an offset between TTL series from SMA connector and the data. The offset is about 2ms (60 samples at 30k). I used signal generator with both TTL and sinewave output. I fed TTL into SMA and sinewave into saline bath with probe submerged.

This is what signals look on scope:
osciloscope

This is what I get using SpikeGLX:
spike_glx

This is what I get using Open Ephys:
open-ephys

The offset can be corrected by retreating (moving backward) sync series by 2ms (55 samples at 30k).

I am using NI PXIe-1071 with Imec card, v1 probes, latest versions of software.

Could someone replicate this?

Dino

@nsteinme
Copy link
Contributor

Thanks for making this kind of careful measurement, which actually I had not made myself before. I passed the issue on to some people who might be able to help test/diagnose - hopefully we'll hear back here from them.

@ddvoraknyu
Copy link
Author

ddvoraknyu commented Jan 23, 2020

Bit more info for the record - exactly the same experiment but done with OpenEphys with Neuronexus 1x32 probe results in correct sync between TTL and data.

OpenEphys_Neuronexus

@jenniferColonell
Copy link

There is no time offset between the sync and neural channels. It is not a bug. It is an effect of the filtering of the AP band. High pass filtering of a low frequency since wave adds a phase shift.

By default, the Neuropixels 1.0 probes output data in two bands: the AP band, to which a 300 Hz high pass filter has been applied, and the LF band, which has been through a 0.5-1000 Hz bandpass filter. This strategy allows more efficient use of the dynamic range of the AP band by eliminating offsets and low frequency oscillations. For measurement of signals below ~600 Hz, the LF band should be analyzed, rather than the AP band.

The filter can be disabled. In SpikeGLX edit the imro table. In OpenEphys use the “AP Filter Cut” selection box.

Attached is a set of figures showing the phase shifts of low frequency sine signals and the alignment between neural channels and the sync channel.

NP1.0_filter_effect.pptx

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

No branches or pull requests

3 participants