Table of Contents

NeuropixelsV2e Headstage Port Status

The Onix system reports when a headstage/miniscope port connection enters or leaves an aberrant state. Such aberrant states include loss of communication lock, detection of parity or CRC error, reception of a badly formatted packet, etc. Knowing the time and type of an aberrant state can help track down its cause. The following excerpt from the NeuropixelsV2e Headstage example workflow demonstrates port status functionality and saves timestamped port status data.

~/workflows/hardware/np2e/port-status.bonsai workflow

PortStatus emits a PortStatusFrame when PortStatusCode changes value i.e. when the NeuropixelsV2e Headstage port connection enters or leaves an aberrant state. Its DeviceName property is set to "HeadstageNeuropixelsV2e/PortController" which links the operator to the port controller where the NeuropixelsV2e Headstage is connected.

The TimeStamp operator generates a sequence of UTC timestamped items from its input sequence. The CsvWriter operator writes Timestamp as well as Clock and StatusCode members from PortStatusFrame to a file with the following name format: port-status_<filecount>.csv.

NOTE

The PortStatus datastream is always enabled. ConfigureHeadstageNeuropixelsV2e does not have an Enable property for streaming port status data.

Note

The NeuropixelsV2eBeta Headstage functions nearly identically to the NeuropixelsV2e Headstage in Bonsai. Simply set PortStatus's DeviceName property to "HeadstageNeuropixelsV2eBeta/PortController".