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

Issue synchronizing Neuropixel and NI-DAQ data streams #634

Open
ellecj729 opened this issue Nov 25, 2024 · 3 comments
Open

Issue synchronizing Neuropixel and NI-DAQ data streams #634

ellecj729 opened this issue Nov 25, 2024 · 3 comments

Comments

@ellecj729
Copy link

Hello!

I am trying to synchronize multiple analog inputs from a NI-DAQ (NI USB-6211) with the data stream from a Neuropixel 2.0 probe. I am trying to use the Neuropix-PXI as the main clock. As recommended the SMA is set to output and the cable is connected to DI0 on the NI-DAQ. I am using a merger node with Neuropix as input A and NI-DAQ as input B and have the 1st digital channel set as the sync line for the NI-DAQ in the record node. With this configuration, once I start acquisition, I am able to read the analog inputs accurately through the LFP viewer and the probe is synchronized but the NI-DAQ sync line never turns green.

I have confirmed through NI-MAX that the DAQ is receiving the 1Hz signal from the basestation and followed the recommendations in the synchronization tutorial but so far nothing has resolved the issue. Any advice would be greatly appreciated!

@medengineer
Copy link
Member

Hello!

I just tested this with a different USB based NIDAQ device and found the GUI’s online synchronizer only works when the sample rate for the NIDAQ device is set to 1kHz. Can you confirm that lowering the sample rate in your NIDAQ device has the same effect (there may be a different min sample rate for your device?)

Regardless of sample rate, if you’re seeing the 1Hz signal in both NI MAX and the LFPViewer’s NDQ stream, it’s safe to assume you will be able to perform offline synchronization without issue. I will take a closer look at what’s going on with the online synchronizer in this case by early next week.

@ellecj729
Copy link
Author

Thanks for the reply!!

I tried lowering the sample rate to 1kHz but have the same issue. Also I should clarify that I don't see the digital 1Hz signal (at least the event overlay) in the LFP viewer.

@medengineer
Copy link
Member

Ah okay, that's a separate problem then. So you can see the NIDAQ analog inputs in the LFPViewer but not the digital 1Hz event overlays.

Is there any error message in Debug console of the GUI? Does changing the digital input connection on the NIDAQ device make any difference, (ex: from line 1 to line 2)?

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

2 participants