Table of Contents

UCLA Miniscope v4 Bno055

The following excerpt from the UCLA Miniscope v4 example workflow visualizes Bno055 data, saves Bno055 data, and commutates the UCLA Miniscope v4 if there is a proper commutator connection.

~/workflows/hardware/ucla-miniscope-v4/bno055.bonsai workflow

The PolledBno055Data operator generates a sequence of Bno055DataFrames. Its DeviceName property is set to "UclaMiniscopeV4/PolledBno055Data" which links PolledBno055Data to the Bno055 on the UCLA Miniscope v4.

The CsvWriter operator writes the entire Bno055DataFrame to a file with the following format: bno055_<filecount>.csv. Because CsvWriter is a sink operator, its output sequence is equivalent to its input sequence. This means that the Quaternion member from Bno055DataFrame can be selected downstream of CsvWriter. This is most easily performed by right-clicking the operator, hovering over "Output", and clicking the corresponding member.

Quaternion values are passed to AutoCommutator which automatically commutates the headstage's tether if there is a proper commutator connection. This operator comes from the OpenEphys.Commutator Bonsai package. Make sure it's installed and updated. You can enable/disable the commutator using the Enable property, enable/disable the LED on the commutator using the LedEnable property, and set the COM port using the PortName property. The correct COM port value varies from system to system. You must find and set the correct COM port to which your commutator is connected in your system.

NOTE

AutoCommutator is included in the workflow because a commutator is often combined with the UCLA Miniscope v4 and the Breakout Board for freely-moving experiments. However, it is disabled by default so that users without a commutator can run the workflow without additional steps. To enable it, click on the node and press Ctrl + Shift + D or right-click the node and click "Enable".