Skip to content

Commit cb71299

Browse files
committed
Updated Ephys Link basic tutorial
1 parent 3a07d10 commit cb71299

File tree

6 files changed

+78
-40
lines changed

6 files changed

+78
-40
lines changed

source/_static/images/Ephys-Link-connect-probe.png renamed to source/_static/images/tutorial/ephys_link/ephys_link_connect_probe.png

File renamed without changes.

source/_static/images/Ephys-Link-connection.png renamed to source/_static/images/tutorial/ephys_link/ephys_link_connection.png

File renamed without changes.
81.7 KB
Loading

source/_static/images/tutorial/sensapex_manipulators.png renamed to source/_static/images/tutorial/ephys_link/sensapex_manipulators.png

File renamed without changes.

source/ephys_link/installation_and_use.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,4 @@ More options can be viewed by running `ephys_link.exe -h`.
126126

127127
New Scale manipulators have two methods of connection. The first method is through the Pathfinder MPM Control software (`-t new_scale_pathfinder`) and the second is via a direct hardware
128128
connection (`-t new_scale`). The first method is only available if Pathfinder is running on the same computer
129-
as Ephys Link. New Scale manipulators should be connected to the Pathfinder software first and the Pathfinder HTTP server should be running.
130-
131-
**Note:** Currently (July 2023), Ephys Copilot automation and manual control within Pinpoint is not supported when
132-
connected to New Scale via Pathfinder MPM.
133-
134-
### Options
135-
136-
All options can be viewed with `ephys_link --help`.
137-
138-
| Option | Input | Default | Description |
139-
|----------------------------------|-----------------------------------------------------|-------------|----------------------------------------------------------------|
140-
| `-h, --help` | | | Show help message and options |
141-
| `-b, --background` | | | Launch server without startup window |
142-
| `-t TYPE, --type TYPE` | `sensapex` or `new_scale` or `new_scale_pathfinder` | `sensapex` | Select manipulator type |
143-
| `-p PORT, --port PORT` | Valid HTTP port number | `8081` | HTTP port to serve on |
144-
| `--pathfinder_port` | Valid HTTP port number | `8080` | HTTP port Pathfinder's server is running on |
145-
| `-s [SERIAL], --serial [SERIAL]` | Serial port name (i.e. `COM3`) or empty | `no-e-stop` | Emergency stop serial port. Auto searches if no port specified |
146-
| `-d, --debug` | | | Enable verbose logging for debugging |
147-
| `--version` | | | Version number of server |
129+
as Ephys Link. New Scale manipulators should be connected to the Pathfinder software first and the Pathfinder HTTP server should be running.

source/pinpoint/tutorials/tutorial_ephys_link.md

Lines changed: 77 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Pinpoint can be connected to electrophysiology manipulators
44
enabling experimenters to automate the placement of manipulators as well as
55
observe live where probes are placed inside the mouse brain.
66

7-
We currently (July 2023) support Sensapex uMp-4 and New Scale 3-axis
8-
manipulators.
7+
**In this tutorial you will learn how to:**
98

10-
**These features are only available on the Windows Desktop build of Pinpoint**
11-
they will not run in the web browser.
9+
1. [Configure and launch Ephys Link](configure-and-launch-ephys-link)
10+
2. [Connect to the server from Pinpoint](ephys-link-connection)
11+
3. [Mirror the positions of _in vivo_ probes in Pinpoint](ephys-link-mirror-probes)
1212

1313
[//]: # (**If you would like to use beta version of)
1414

@@ -18,19 +18,71 @@ they will not run in the web browser.
1818

1919
[//]: # (.**)
2020

21-
To enable this feature, an instance of an Ephys Link server must be running on
22-
the local network. Please see the
23-
instructions [here](https://virtualbrainlab.org/ephys_link/installation_and_use.html#installation)
24-
on how to install and run a server.
21+
[//]: # (To enable this feature, an instance of an Ephys Link server must be running on)
2522

26-
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
27-
<iframe src="https://www.youtube-nocookie.com/embed/QK87XBd46aQ?rel=0&modestbranding=1" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="Overview"></iframe>
28-
</div>
29-
<br>
23+
[//]: # (the local network. Please see the)
3024

31-
## Connecting to a server
25+
[//]: # (instructions [here]&#40;https://virtualbrainlab.org/ephys_link/installation_and_use.html#installation&#41;)
3226

33-
![Connecting to Ephys Link](../../_static/images/Ephys-Link-connection.png)
27+
[//]: # (on how to install and run a server.)
28+
29+
[//]: # ()
30+
31+
[//]: # (<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">)
32+
33+
[//]: # ( <iframe src="https://www.youtube-nocookie.com/embed/QK87XBd46aQ?rel=0&modestbranding=1" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="Overview"></iframe>)
34+
35+
[//]: # (</div>)
36+
37+
[//]: # (<br>)
38+
39+
(configure-and-launch-ephys-link)=
40+
## 1. Configure and Launch Ephys Link
41+
42+
### Install Ephys Link
43+
44+
First, install Ephys Link. Follow the instructions on
45+
the [installation page](https://virtualbrainlab.org/ephys_link/installation_and_use.html#installation).
46+
We recommend most users install
47+
the [standalone executable](https://virtualbrainlab.org/ephys_link/installation_and_use.html#install-as-standalone-executable).
48+
49+
### Launch Ephys Link
50+
51+
With the executable downloaded, simply double-click the executable file to
52+
launch
53+
the configuration window.
54+
55+
![Ephys Link configuration window](../../_static/images/tutorial/ephys_link/ephys_link_launch.png)
56+
57+
### Configuring Ephys Link
58+
59+
You can configure the server using the configuration window. All changes are
60+
preserved for future launches.
61+
62+
- **Serving Settings**
63+
- **IP:** the local IP address of the computer running the server. If
64+
Pinpoint
65+
is running on the same computer as Ephys Link, `localhost` will work as
66+
the IP. Otherwise, copy this address to Pinpoint.
67+
- **Port:** the port number that the server will listen on. Also copy this
68+
to
69+
Pinpoint.
70+
- **Platform Type:** Select the appropriate manipulator platform for your setup.
71+
- **Pathfinder Settings:** If you are using New Scale's Pathfinder MPM Control
72+
software to control your manipulators, please enable the HTTP server and
73+
specify the port number here (it should be 8080 by default).
74+
- **Emergency Stop Settings:** If you are using the Arduino hardware stop
75+
button, please specify the serial port. An empty value will be used to
76+
automatically detect the port and a value of `no-e-stop` will disable this
77+
feature.
78+
79+
Press "Launch Server" to save your configuration and start the server. The
80+
configuration window will close and the server will use the console window.
81+
82+
(ephys-link-connection)=
83+
## 2. Connect to Ephys Link from Pinpoint
84+
85+
![Connecting to Ephys Link](../../_static/images/tutorial/ephys_link/ephys_link_connection.png)
3486

3587
1. Press \[ESC\] to open the settings menu
3688
2. Switch to the "Ephys Link" tab
@@ -41,19 +93,20 @@ on how to install and run a server.
4193
configuration of manipulators and linking them to probes in the scene.
4294
7. Press \[ESC\] again to close the settings menu
4395

44-
## Linking a probe in the planner to a manipulator _in vivo_
96+
(ephys-link-mirror-probes)=
97+
## 3. Mirror the Positions of _in vivo_ Probes in Pinpoint
4598

4699
This step is not required for New Scale Pathfinder connections. See below
47100
for details.
48101

49-
![Connect a probe to a manipulator](../../_static/images/Ephys-Link-connect-probe.png)
102+
![Connect a probe to a manipulator](../../_static/images/tutorial/ephys_link/ephys_link_connect_probe.png)
50103

51104
1. Spawn the corresponding probe in the planner scene.
52105
2. Press \[ESC\] to open the settings menu.
53106
3. Switch to the "Ephys Link" tab.
54107
4. Scroll down to the panel that represents the _in vivo_ manipulator.
55-
5. Use the dropdown to configure the manipulator's handedness. Currently (July
56-
2023), configuration is necessary for Sensapex uMp manipulators only.
108+
5. Use the dropdown to configure the manipulator's handedness. As of July
109+
2023 configuration is necessary for Sensapex uMp manipulators only.
57110
Configuration is hidden for New Scale manipulators. See the section below for
58111
more information.
59112
6. Use the dropdown to select a probe to link to this manipulator. Probes are
@@ -73,6 +126,9 @@ for details.
73126
back to their zero coordinate.
74127
10. Press \[ESC\] again to close the settings menu.
75128

129+
At this point, the _in vivo_ probe positions should be mirrored in Pinpoint in
130+
real time.
131+
76132
### Sensapex Handedness
77133

78134
Handedness determines the orientation of the manipulator and which
@@ -85,15 +141,15 @@ determine the handedness of your manipulator.
85141

86142
![Sensapex handedness](../../_static/images/tutorial/sensapex_manipulators.png)
87143

88-
### New Scale Pathfinder connections do not require configuration
144+
### New Scale Pathfinder MPM connections do not require configuration
89145

90146
Launching Ephys Link requires specifying the type of manipulator that is being
91147
used. Configuration in Pinpoint will differ depending on the type of
92148
manipulator. **New Scale Pathfinder connections do not require any
93149
configuration** in Pinpoint as all manipulators are configured in Pathfinder.
94150
Pinpoint will automatically create probes (colored in magenta) for
95-
each manipulator from Pathfinder and automatically echo their positions and
96-
angles.
151+
each manipulator from Pathfinder and automatically echo their positions,
152+
angles, and shank count.
97153

98154
## Enabling experiment automation (Ephys Copilot)
99155

0 commit comments

Comments
 (0)