Table of Contents

NeuropixelsV1e 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 NeuropixelsV1e Headstage example workflow demonstrates port status functionality and saves timestamped port status data.

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

PortStatus emits a PortStatusFrame when PortStatusCode changes value i.e. when the NeuropixelsV1e Headstage port connection enters or leaves an aberrant state. Its DeviceName property is set to "HeadstageNeuropixelsV1e/PortController" which links the operator to the port controller where the NeuropixelsV1e 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. ConfigureHeadstageNeuropixelsV1e does not have an Enable property for streaming port status data.