Skip to content

Commit 152db21

Browse files
committed
Initial commutator tutorial progress
1 parent f844439 commit 152db21

File tree

7 files changed

+179
-52
lines changed

7 files changed

+179
-52
lines changed

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ verify_ssl = true
77
sphinx = "*"
88
pydata-sphinx-theme = "0.13.3"
99
sphinx-tabs = "*"
10-
make = "*"
10+
make = "*"
11+
sphinx-design = "*"

Pipfile.lock

Lines changed: 54 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/Tutorials/Commutator.rst

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
.. _commutator:
2+
3+
.. role:: raw-html-m2r(raw)
4+
:format: html
5+
6+
Automated Tether Commutation
7+
============================
8+
9+
.. note::
10+
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 an ONIX board).
11+
12+
Most acquisition systems rely on a tether to transmit power and data between the headstage and the
13+
data acquisition system. This can be problematic during freely behaving experiments because the
14+
animal is liable to twist and tangle the tether while it moves around which can end up exerting
15+
torque on the animal. This is mitigated by using a commutator, a device that untwists the tether as
16+
the animal moves around while maintaining electrical continuity between the animal and data
17+
acquisition system. This encourage more naturalistic behaviors.
18+
19+
This tutorial demonstrates how to automate commutation using a the Open Ephys GUI, a 3D-capable
20+
headstage, and an Open Ephys SPI commutator.
21+
22+
Hardware connections
23+
#####################
24+
25+
.. tab-set::
26+
:sync-group: acquisition-hardware
27+
28+
.. tab-item:: Acquisition Board
29+
:sync: acquisition-board
30+
31+
#. Follow the `Acquisition Board Quick Start Guide
32+
<https://open-ephys.github.io/acq-board-docs/User-Manual/Quickstart-guide.html>`__ to establish
33+
the following acquisition board connections:
34+
35+
- USB 3.0 connection between the acquisition board and the PC.
36+
37+
- +5V connection between the acquisition board and an AC power source.
38+
39+
#. Follow the `SPI Commutator Connections section
40+
<https://open-ephys.github.io/commutator-docs/user-guide/mount-connect.html?commutator=spi#connecting>`__
41+
of the commutator hardware docs to establish the following commutator connections:
42+
43+
- SPI connection between the commutator's stator and the acquisition board.
44+
45+
- SPI connection between the commutator's rotor and the 3D capable headstage.
46+
47+
- USB connection between the commutator and the PC.
48+
49+
.. tab-item:: ONIX
50+
:sync: onix
51+
52+
#. Follow the `ONIX Hardware Guide
53+
<https://open-ephys.github.io/onix-docs/User-Manual/Quickstart-guide.html>`__ to setup
54+
your ONIX board and establish the following ONIX system's connections:
55+
56+
- 2x (A & B) coaxial connections between the breakout board and the PCIe host.
57+
58+
- SDR connection between the breakout board and the PCIe host.
59+
60+
#. Follow the `Coax Commutator Connections section
61+
<https://open-ephys.github.io/commutator-docs/user-guide/mount-connect.html?commutator=coax#connecting>`__
62+
of the commutator hardware docs to establish the connections between the ONIX system and a 3D capable headstage:
63+
64+
- Coaxial connection between the commutator's stator and the acquisition board.
65+
66+
- Coaxial connection between the commutator's rotor and the 3D capable headstage.
67+
68+
- USB connection between the commutator and the PC.
69+
70+
71+
Install GUI and prepare signal chain
72+
####################################
73+
74+
#. :doc:`Install the Open Ephys GUI </User-Manual/Installing-the-GUI>` if you haven't already.
75+
76+
#. Open the GUI.
77+
78+
.. note::
79+
- If this is your first time opening the GUI, you will be queried to load a default signal chain. Choose the "Acquisition Board" signal chain.
80+
- If the Open Ephys GUI already has a signal chain loaded you would like to save, :ref:`do that <file>` before proceeding to the next step because the next step overwrites any current signal chain.
81+
82+
#. Download one following signal chains depending on which hardware you are using.
83+
84+
.. tab-set::
85+
:sync-group: acquisition-hardware
86+
87+
.. tab-item:: Acquisition Board
88+
:sync: acquisition-board
89+
90+
:download:`Acquisition Board Signal Chain`
91+
92+
.. image:: /_static/images/tutorials/commutator/onix-signal-chain.png
93+
:alt: Acquisition Board Signal Chain for commutation
94+
95+
.. tab-item:: ONIX
96+
:sync: onix
97+
98+
:download:`ONIX Signal Chain`
99+
100+
.. image:: /_static/images/tutorials/commutator/onix-signal-chain.png
101+
:alt: ONIX Signal Chain for commutation
102+
103+
#. :ref:`Open <file>` the downloaded signal chain in the GUI.
104+
105+
#. Refer to :doc:`/User-Manual/Plugins/Commutator-Control` to configure the Commutator Control
106+
processor.
107+
108+
- The selected stream should correspond to a port that has a 3D capable headstage to it.
109+
110+
- The selected COM port should correspond to the one to which your commutator is connected.
111+
112+
- For an off-the-shelf Open Ephys 3D capable headstage, adjusting the rotation axis is not
113+
necessary.
114+
115+
#. Click the ▶ play button in the top-right corner of the GUI. The commutator now follows the
116+
rotation of the headstage.
117+

source/Tutorials/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The following tutorials are available for the Open Ephys GUI:
1818

1919
Closed-Loop-Latency
2020
Data-Synchronization
21+
Commutator
2122
How-To-Make-Your-Own-Plugin
2223
Making-Your-Own-Visualizer-Plugin
2324

source/User-Manual/Exploring-the-user-interface.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ Menu items
8787

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

90+
.. _file:
91+
9092
File
9193
-----
9294
* **Open**: Browse for a previously saved signal chain XML file, and load it into the GUI.

source/User-Manual/Plugins/Commutator-Control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Commutator Control
99
.. image:: ../../_static/images/plugins/commutatorcontrol/oecommutator.png
1010
:alt: Annotated settings interface for the Commutator Control plugin
1111

12-
.. csv-table:: Prevents twist in the tether connecting a moving animal to a stationary `Open Ephys acquisition board Gen3 <https://open-ephys.org/acq-board>`__.
12+
.. csv-table:: Prevents twist in the tether connecting a moving animal to a stationary `Open Ephys acquisition board Gen3 <https://open-ephys.org/acq-board>`__ using orientation data collected from a 3D-capable headstage.
1313
:widths: 18, 80
1414

1515
"*Plugin Type*", "Sink"

source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4242
# ones.
4343
extensions = ["sphinx.ext.todo",
44-
"sphinx.ext.githubpages"]
44+
"sphinx.ext.githubpages",
45+
"sphinx_design"]
4546

4647

4748
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)