Repository navigation
Conversation
While the last REPFILECFG reports cbFILECFG_OPT_REC, a session rejects the settings Central's own dialogs lock during recording: sample groups (CHANSETSMP, or a full CHANSET that changes smpgroup), the raw-stream bit, spike length, spike detection / noise boundaries, n-trode grouping, and restarting or switching on continuous spike sorting. The call returns an error and nothing is sent; a batch (bulk setters, loadCCF) is checked as a whole first. Central itself never filtered packets from other programs, so this is the session's own rule. The STANDALONE session mirrors the recording state into native shared memory so CLIENT sessions apply the same rule. Central-compat sessions are not gated. Co-Authored-By: Claude <[email protected]>
Base automatically changed from
feat/native-default-central-deprecated
to
master
November 6, 2026 21:38
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #215.
Summary
While the device reports a recording in progress (its last
REPFILECFGhasoptions == cbFILECFG_OPT_REC, whoever started the recording), a session refuses to change the settings Central's own dialogs lock during recording. The call returns an error and nothing is sent.Central never filtered packets from other programs. Every check of
IsFileRecording()in Central-Suite is in its UI: dialogs disable controls, or a "stop recording?" prompt appears. Its transmit-buffer drain (CentralDlg.cpp,InstNetwork.cpp) forwards cbsdk packets regardless. So this is the session's own rule, not a replacement for something Central-compat mode provided.What is refused while recording
SYSSETSPKLEN(spike length / pre-trigger)CHANSETSMP/ fullCHANSET:smpgroupSS_DETECTSET,SS_NOISE_BOUNDARYSETCHANSETAINP/ fullCHANSET: thecbAINP_RAWSTREAM_ENABLEDbitCHANSETNTRODEGROUP,SETNTRODEINFOSS_STATUSSET: switching continuous sorting on (cntlNumUnits.nMode→ADAPT_ALWAYS)SS_RESETSET(restart spike sorting)CHANSET: checked becausesetChannelConfig()andloadCCF()can change a sample group with it. Central only sends it from its Crosstalk / AutoImpedance tools, and only after recording has stopped.ADAPT_NEVER) is allowed, as in Central.How
src/cbsdk/src/recording_gate.h, a pure function of the packet and the current config.SdkSession::Impl::rejectWhileRecording()runs insendPacket,sendBulkPackets,loadCCF, and the STANDALONE branches ofsetChannelConfig/setSpikeLength. Batches (bulk setters, CCF loads) are checked as a whole before anything is sent.REPFILECFGwith REC / STOP / TIMEOUT, same filter as cbdev'sdevice_config.fileinfo) into native shared memory, so CLIENTs apply the same rule.CERELINK_CENTRAL_COMPAT=1) are not gated.Tests
recording_gate_tests(7 tests, no device).Not verified:
REPFILECFGpromptly. Until one arrives, the gate is not applied.🤖 Generated with Claude Code