Skip to content

Commit e34ebd2

Browse files
committed
Update documentation
1 parent d3c991b commit e34ebd2

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

Diff for: User-Manual/Plugins/Ephys-Socket.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ <h2>Header Format for Custom Data Streams<a class="headerlink" href="#header-for
605605
<td><p>Total number of bytes sent in each packet. Calculated as <code class="code docutils literal notranslate"><span class="pre">num_bytes</span> <span class="pre">=</span> <span class="pre">num_channels</span> <span class="pre">*</span> <span class="pre">num_samples</span> <span class="pre">*</span> <span class="pre">element_size</span></code>. This does <strong>not</strong> include the header bytes.</p></td>
606606
</tr>
607607
<tr class="row-even"><td><p>Bit Depth</p></td>
608-
<td><p>int16</p></td>
608+
<td><p><cite>int16</cite></p></td>
609609
<td><p>Depth defines the OpenCV.Mat <a class="reference external" href="https://github.com/horizongir/opencv.net/blob/main/src/OpenCV.Net/CoreTypes.cs#L93">Depth</a>, an enumeration defined as <code class="code docutils literal notranslate"><span class="pre">[U8,</span> <span class="pre">S8,</span> <span class="pre">U16,</span> <span class="pre">S16,</span> <span class="pre">S32,</span> <span class="pre">F32,</span> <span class="pre">F64]</span></code>, where U is ‘unsigned’, S is ‘signed’, F is ‘float’, and the number indicates the number of bits. For example, <code class="code docutils literal notranslate"><span class="pre">U16</span></code> means ‘unsigned integer with 16 bits’. Note that the enumeration is zero-indexed, where <code class="code docutils literal notranslate"><span class="pre">U8</span> <span class="pre">=</span> <span class="pre">0</span></code>, and <code class="code docutils literal notranslate"><span class="pre">F64</span> <span class="pre">=</span> <span class="pre">6</span></code></p></td>
610610
</tr>
611611
<tr class="row-odd"><td><p>Element Size</p></td>
@@ -627,6 +627,22 @@ <h2>Header Format for Custom Data Streams<a class="headerlink" href="#header-for
627627
<p>Pay attention to the order of data samples in the example script. Samples are not interleaved, but rather in each packet the samples for channel 1 are sent, followed by the samples for channel 2, and so on.</p>
628628
</div>
629629
</section>
630+
<section id="remote-control">
631+
<h2>Remote Control<a class="headerlink" href="#remote-control" title="Permalink to this heading">#</a></h2>
632+
<p>Some Ephys Socket settings can be modified via the GUI’s built-in HTTP server. Commands are sent as “config messages” to the Ephys Socket node.</p>
633+
<div class="admonition note">
634+
<p class="admonition-title">Note</p>
635+
<p>Parameters cannot be modified while acquisition is running, nor can they be modified if the port is connected. To change any settings remotely, the port must be disconnected in the GUI</p>
636+
</div>
637+
<p>The following commands are available:</p>
638+
<ol class="arabic simple">
639+
<li><p><code class="code docutils literal notranslate"><span class="pre">ES</span> <span class="pre">INFO</span></code> : returns a JSON string containing information about all available variables (i.e., scale, offset, port, and frequency)</p></li>
640+
<li><p><code class="code docutils literal notranslate"><span class="pre">ES</span> <span class="pre">SCALE</span> <span class="pre">&lt;data_scale&gt;</span></code> : set the data scale</p></li>
641+
<li><p><code class="code docutils literal notranslate"><span class="pre">ES</span> <span class="pre">OFFSET</span> <span class="pre">&lt;data_offset&gt;</span></code> : set the data offset</p></li>
642+
<li><p><code class="code docutils literal notranslate"><span class="pre">ES</span> <span class="pre">PORT</span> <span class="pre">&lt;port&gt;</span></code> : set the port number</p></li>
643+
<li><p><code class="code docutils literal notranslate"><span class="pre">ES</span> <span class="pre">FREQUENCY</span> <span class="pre">&lt;sample_rate&gt;</span></code> : set the sampling frequency</p></li>
644+
</ol>
645+
</section>
630646
</section>
631647

632648

@@ -683,6 +699,7 @@ <h2>Header Format for Custom Data Streams<a class="headerlink" href="#header-for
683699
</ul>
684700
</li>
685701
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#header-format-for-custom-data-streams">Header Format for Custom Data Streams</a></li>
702+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#remote-control">Remote Control</a></li>
686703
</ul>
687704
</nav></div>
688705

Diff for: _sources/User-Manual/Plugins/Ephys-Socket.rst.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,28 @@ An example Python script is included in the `Resources <https://github.com/open-
110110
"**Variable**", "**Data Type**", "**Description**"
111111
"Offset", "`int32`", "Integer defining the offset in the data stream. For TCP sockets, value must always be set to **0**."
112112
"Number of Bytes", "`int32`", "Total number of bytes sent in each packet. Calculated as :code:`num_bytes = num_channels * num_samples * element_size`. This does **not** include the header bytes."
113-
"Bit Depth", "int16", "Depth defines the OpenCV.Mat `Depth <https://github.com/horizongir/opencv.net/blob/main/src/OpenCV.Net/CoreTypes.cs#L93>`__, an enumeration defined as :code:`[U8, S8, U16, S16, S32, F32, F64]`, where U is 'unsigned', S is 'signed', F is 'float', and the number indicates the number of bits. For example, :code:`U16` means 'unsigned integer with 16 bits'. Note that the enumeration is zero-indexed, where :code:`U8 = 0`, and :code:`F64 = 6`"
113+
"Bit Depth", "`int16`", "Depth defines the OpenCV.Mat `Depth <https://github.com/horizongir/opencv.net/blob/main/src/OpenCV.Net/CoreTypes.cs#L93>`__, an enumeration defined as :code:`[U8, S8, U16, S16, S32, F32, F64]`, where U is 'unsigned', S is 'signed', F is 'float', and the number indicates the number of bits. For example, :code:`U16` means 'unsigned integer with 16 bits'. Note that the enumeration is zero-indexed, where :code:`U8 = 0`, and :code:`F64 = 6`"
114114
"Element Size", "`int32`", "Number of bytes needed for each sample. For :code:`U16`, :code:`element_size = 2`, while for :code:`F64`, :code:`element_size = 8`."
115115
"Number of Channels", "`int32`", "Number of channels per packet."
116116
"Number of Samples", "`int32`", "Number of samples sent per channel per packet."
117117

118118
.. note::
119119

120120
Pay attention to the order of data samples in the example script. Samples are not interleaved, but rather in each packet the samples for channel 1 are sent, followed by the samples for channel 2, and so on.
121+
122+
Remote Control
123+
#################
124+
125+
Some Ephys Socket settings can be modified via the GUI's built-in HTTP server. Commands are sent as "config messages" to the Ephys Socket node.
126+
127+
.. note::
128+
129+
Parameters cannot be modified while acquisition is running, nor can they be modified if the port is connected. To change any settings remotely, the port must be disconnected in the GUI
130+
131+
The following commands are available:
132+
133+
1. :code:`ES INFO` : returns a JSON string containing information about all available variables (i.e., scale, offset, port, and frequency)
134+
2. :code:`ES SCALE <data_scale>` : set the data scale
135+
3. :code:`ES OFFSET <data_offset>` : set the data offset
136+
4. :code:`ES PORT <port>` : set the port number
137+
5. :code:`ES FREQUENCY <sample_rate>` : set the sampling frequency

Diff for: searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)