Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ verify_ssl = true
sphinx = "*"
pydata-sphinx-theme = "0.13.3"
sphinx-tabs = "*"
make = "*"
make = "*"
sphinx-design = "*"
103 changes: 54 additions & 49 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

157 changes: 157 additions & 0 deletions source/Tutorials/Commutator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
.. _commutator:

.. role:: raw-html-m2r(raw)
:format: html

Automating Tether Commutation
==============================

.. note::
Following this tutorial requires a 3D capable headstage, an Open Ephys SPI
commutator, and a 3D capable data acquisition system (e.g. a Gen 3
Acquisition Board or ONIX).

.. raw:: html

<center>
<figure>
<video width="560" height="340" controls muted>
<source src="../_static/images/SPI_commutator.mp4" type="video/mp4">
</video>
<figcaption>
A demonstration of automated commutation using an <a href="url"
src="https://open-ephys.org/acquisition-system/oeps-9029">
Acquisition Board Gen 3</a> (not shown), a <a href="url"
src="https://open-ephys.org/acquisition-system/oeps-6570-6571">
Low-profile 3D capable 64ch headstage</a>, and an <a href="url"
src="https://open-ephys.org/commutators/oeps-7761">SPI
commutator</a>.
</figcaption>
</figure>
</center>

Most acquisition systems rely on a tether to transmit power and data between the
headstage and the data acquisition controller. During freely
behaving experiments, as the animal moves around, the tether can get twisted and tangled, which can end up exerting torque on the animal. This can
be is mitigated by using a commutator, a device that untwists the tether as the
animal moves around while maintaining electrical continuity between the headstage on the animal and data acquisition controller. Our commutators don't require tether torque to know in which direction to compensate for the twists. Instead, they use information from absolute orientation sensors on our 3D capable headstages. Torque-free automatic commutation relives strain from the animal, encouraging more naturalistic behaviors and enabling long-term recordings.

This tutorial demonstrates how to automate commutation using the Open Ephys
GUI, a 3D capable headstage, and an Open Ephys commutator.

Hardware Configuration
#######################

.. tab-set::
:sync-group: acquisition-hardware

.. tab-item:: Acquisition Board
:sync: acquisition-board

Make sure you have a `3D capable SPI headstage <https://open-ephys.github.io/acq-board-docs/Hardware-Guide/Headstages.html#open-ephys-headstages>`__ which have an Inertial Measurement Unit (IMU).

#. Follow the `Acquisition Board Quick Start Guide
<https://open-ephys.github.io/acq-board-docs/User-Manual/Quickstart-guide.html#connecting-the-usb-cable-and-power-supply>`__
to establish the following necessary acquisition board connections:

- USB 3.0 connection between the acquisition board and the PC.

- +5V connection between the acquisition board and an AC power
source.

#. Follow the `SPI Commutator Connections section
<https://open-ephys.github.io/commutator-docs/user-guide/mount-connect.html?commutator=spi#connecting>`__
of the commutator hardware docs to establish the following necessary
commutator connections:

- SPI connection between the commutator's stator and the
`acquisition board <https://open-ephys.github.io/acq-board-docs/User-Manual/Quickstart-guide.html#connecting-the-headstages>`_.

- SPI connection between the commutator's rotor and the 3D capable
headstage.

- USB connection between the commutator and the PC.

.. tab-item:: ONIX
:sync: onix

Make sure you have a `3D capable ONIX headstage <https://open-ephys.github.io/onix-docs/Hardware%20Guide/Headstages/index.html>`__ which have an Inertial Measurement Unit (IMU), specifically, a BNO055 device.

#. Follow the `ONIX Hardware Guide
<https://open-ephys.github.io/onix-docs/Hardware%20Guide/Breakout%20Board/setup.html>`__
to establish the following necessary ONIX connections:

- 2x (A & B) coaxial connections between the breakout board and
the PCIe host.

- SDR connection between the breakout board and the PCIe host.

#. Follow the `Coax Commutator Connections section
<https://open-ephys.github.io/commutator-docs/user-guide/mount-connect.html?commutator=coax#connecting>`__
of the commutator hardware docs to establish the following necessary
commutator connections:

- Coaxial connection(s) between the commutator's stator(s) and the
acquisition board.

- Coaxial connection(s) between the commutator's rotor(s) and the 3D
capable headstage.

- USB connection between the commutator and the PC.

Software Configuration
####################################

#. In the Open Ephys GUI, download the source processor for your hardware (:doc:`/User-Manual/Plugins/Acquisition-Board` or :doc:`/User-Manual/Plugins/Onix-Source`) via “File > Plugin Installer”.

#. Download one of the following signal chains depending on which hardware you are
using.

.. tab-set::
:sync-group: acquisition-hardware

.. tab-item:: Acquisition Board
:sync: acquisition-board

:download:`Acquisition Board Signal Chain`

.. image:: /_static/images/tutorials/commutator/onix-signal-chain.png
:alt: Acquisition Board Signal Chain for commutation

.. tab-item:: ONIX
:sync: onix

:download:`ONIX Signal Chain`

.. image:: /_static/images/tutorials/commutator/onix-signal-chain.png
:alt: ONIX Signal Chain for commutation

#. :ref:`Open <file>` the downloaded signal chain in the GUI.

.. tip::
Confirm that the acquisition system has detected a 3D capable device.

- If you are using the Acquisition Board, confirm that "IMU" occupies one of the slots in headstage port indicator in the Acquisition Board processor after the Acquisition Board is initialized and headstage ports are scanned.

- If you are using ONIX, confirm that one of the data devices on your headstage is "BNO055" and that it is enabled, using the processor's configuration canvas.

#. Refer to the :doc:`/User-Manual/Plugins/Commutator-Control` page to configure
the Commutator Control processor.

- The selected Serial port should correspond to the COM port in which the commutator is connected.

- The selected Stream should correspond to a 3D data stream. For dual commutators, two 3D data streams could be available. Select the one you want to use.

- For typical usage of an off-the-shelf Open Ephys 3D capable headstage,
adjusting the rotation axis is not necessary.

..
If you mount the headstage in a non-conventional location, refer to
the `IMU Data <https://github.com/open-ephys/wiki/wiki/IMU-Data>`_
article and `headstage docs
<https://open-ephys.github.io/headstage_docs.html>`_ for your particular
hardware to figure out how to set the rotation axis.

#. Make sure the GUI has connected to the acquisition system and click the ▶ play button in the top-right corner. The commutator
now follows the rotation of the headstage.

1 change: 1 addition & 0 deletions source/Tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The following tutorials are available for the Open Ephys GUI:

Closed-Loop-Latency
Data-Synchronization
Commutator
How-To-Make-Your-Own-Plugin
Making-Your-Own-Visualizer-Plugin

Expand Down
2 changes: 2 additions & 0 deletions source/User-Manual/Exploring-the-user-interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ Menu items

Below you'll find documentation for all of the commands available from the GUI's menu:

.. _file:

File
-----
* **Open**: Browse for a previously saved signal chain XML file, and load it into the GUI.
Expand Down
Loading
Loading