-
Notifications
You must be signed in to change notification settings - Fork 15
Synchronization
You have two options:
-
configure the IMEC card(s) to output a sync signal. These sync pulses can only be generated at regular intervals (1 or 10Hz), which can sometimes make synchronization tricky.
-
use a separate device to generate a sync signal, that is then sent as input to the IMEC card(s) in the chassis. The best practice is to generate these at pseudo-random intervals, making it easy to synchronize data.
Here is some code to implement this with an arduino:
const int poissonPin = 7;
const int minPoissonDur = 10; //ms
const int maxPoissonDur = 200; //ms
int currentPoissonState = 0;
void setup() {
// put your setup code here, to run once:
pinMode(poissonPin, OUTPUT);
digitalWrite(poissonPin, LOW);
currentPoissonState = LOW;
}
void loop() {
// put your main code here, to run repeatedly:
//code for flipper
int poissonStateDur = random(minPoissonDur, maxPoissonDur);
delay(poissonStateDur);
if (currentPoissonState==LOW){
currentPoissonState=HIGH;
}
else {
currentPoissonState=LOW;
}
digitalWrite(poissonPin, currentPoissonState);
}
More details and resources on synchronization can be found here.
Synchronizing other signals with electrophysiological data from Neuropixels probes can be achieved by providing up to 16 signals of your choice to the basestation. These signals will be treated as digital TTL inputs and their value (high or low) will be recorded alongside the electrophysiological data stream.
Note that the FPGA boards have independent clocks, so if you are using more than one Neuropixels probe simultaneously, you should take care to ensure that they are each synchronized appropriately, since they will drift relative to each other.
You can connect to all the digital input pins at once using a 24-way IDC connector, like this one or connect to an individual pin with a female d-sub crimp connector like this one.
- About Neuropixels and probe types
- Configurations and selecting electrodes
- Equipment List and example setup
- Probe handling/mounting
- Chronic implants
- Probe sharpening
- Probe care
- Planning probe trajectories
- Acquisition software
- Referencing and Grounding
- Gain settings
- Filter settings
- Impedance testing
- Synchronization
- Multiple probes on one computer
- Light artifacts
- Troubleshooting
- Recommended preprocessing
- Spike sorting
- Spike sorting curation
- Other analysis methods, and tutorial for getting started with Neuropixels Phase3 data in matlab
- Identifying tracks in histology