Skip to content

Blackrock: read NEV 2.2 spikes on electrodes above 255 - #1926

Open
cboulay wants to merge 1 commit into
NeuralEnsemble:masterfrom
cboulay:nev-22-spikes-above-255
Open

cboulay wants to merge 1 commit into
NeuralEnsemble:masterfrom
cboulay:nev-22-spikes-above-255

Conversation

@cboulay

@cboulay cboulay commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Addresses the dropped spikes in #1918: spike packets of a 2.2 .nev were only recognized for IDs 1-255, so a Ripple Trellis recording with electrodes 257+ lost every spike. The 2.2 range is now (1, 2048), the same as 2.3.

The test builds a 2.2 file from neo's 2.3 test file (spec byte changed, electrode 1 renumbered 300 in its NEUEVWAV header and spike packets) and checks that electrode 300's spikes equal electrode 1's in the original. It fails on the old range. I did not run the Trellis sample from the issue through this.

This does not add the warning the issue also asks for when data packets match no known type. I also added a comment above NEV_PACKET_IDENTIFIERS_BY_SPEC that lists the packet IDs of 3.0 files written by Central that are ignored on purpose, so a future warning does not need to treat them as surprises: 0x8000 + channel live-protocol preview packets, and 0xFFF9 recording events (start/stop/pause/resume, per Central's CNevFile30::AddRecordingEvent).

@h-mayorquin you mentioned working on Blackrock this week: we are fine with whatever solution you come up with for #1918 (the range, the warning, or both). Feel free to close this in favor of yours, or push to this branch.

Ripple Trellis writes 2.2 files with electrode IDs by front-end port (1-128,
129-256, 257-384...). Spike packets of a 2.2 file were recognized only for IDs
1-255, so every spike on a higher electrode matched no packet type and was
dropped without a warning. The 2.2 range is now 1-2048, as for 2.3.

Also document next to the table which packet IDs of 3.0 files written by
Central are ignored on purpose (preview packets, recording events).

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant