You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: User-Manual/Plugins/Ephys-Socket.html
+18-1
Original file line number
Diff line number
Diff line change
@@ -605,7 +605,7 @@ <h2>Header Format for Custom Data Streams<a class="headerlink" href="#header-for
605
605
<td><p>Total number of bytes sent in each packet. Calculated as <codeclass="code docutils literal notranslate"><spanclass="pre">num_bytes</span><spanclass="pre">=</span><spanclass="pre">num_channels</span><spanclass="pre">*</span><spanclass="pre">num_samples</span><spanclass="pre">*</span><spanclass="pre">element_size</span></code>. This does <strong>not</strong> include the header bytes.</p></td>
606
606
</tr>
607
607
<trclass="row-even"><td><p>Bit Depth</p></td>
608
-
<td><p>int16</p></td>
608
+
<td><p><cite>int16</cite></p></td>
609
609
<td><p>Depth defines the OpenCV.Mat <aclass="reference external" href="https://github.com/horizongir/opencv.net/blob/main/src/OpenCV.Net/CoreTypes.cs#L93">Depth</a>, an enumeration defined as <codeclass="code docutils literal notranslate"><spanclass="pre">[U8,</span><spanclass="pre">S8,</span><spanclass="pre">U16,</span><spanclass="pre">S16,</span><spanclass="pre">S32,</span><spanclass="pre">F32,</span><spanclass="pre">F64]</span></code>, where U is ‘unsigned’, S is ‘signed’, F is ‘float’, and the number indicates the number of bits. For example, <codeclass="code docutils literal notranslate"><spanclass="pre">U16</span></code> means ‘unsigned integer with 16 bits’. Note that the enumeration is zero-indexed, where <codeclass="code docutils literal notranslate"><spanclass="pre">U8</span><spanclass="pre">=</span><spanclass="pre">0</span></code>, and <codeclass="code docutils literal notranslate"><spanclass="pre">F64</span><spanclass="pre">=</span><spanclass="pre">6</span></code></p></td>
610
610
</tr>
611
611
<trclass="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
627
627
<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>
628
628
</div>
629
629
</section>
630
+
<sectionid="remote-control">
631
+
<h2>Remote Control<aclass="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
+
<divclass="admonition note">
634
+
<pclass="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
+
<olclass="arabic simple">
639
+
<li><p><codeclass="code docutils literal notranslate"><spanclass="pre">ES</span><spanclass="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><codeclass="code docutils literal notranslate"><spanclass="pre">ES</span><spanclass="pre">SCALE</span><spanclass="pre"><data_scale></span></code> : set the data scale</p></li>
641
+
<li><p><codeclass="code docutils literal notranslate"><spanclass="pre">ES</span><spanclass="pre">OFFSET</span><spanclass="pre"><data_offset></span></code> : set the data offset</p></li>
642
+
<li><p><codeclass="code docutils literal notranslate"><spanclass="pre">ES</span><spanclass="pre">PORT</span><spanclass="pre"><port></span></code> : set the port number</p></li>
643
+
<li><p><codeclass="code docutils literal notranslate"><spanclass="pre">ES</span><spanclass="pre">FREQUENCY</span><spanclass="pre"><sample_rate></span></code> : set the sampling frequency</p></li>
644
+
</ol>
645
+
</section>
630
646
</section>
631
647
632
648
@@ -683,6 +699,7 @@ <h2>Header Format for Custom Data Streams<a class="headerlink" href="#header-for
683
699
</ul>
684
700
</li>
685
701
<liclass="toc-h2 nav-item toc-entry"><aclass="reference internal nav-link" href="#header-format-for-custom-data-streams">Header Format for Custom Data Streams</a></li>
"Offset", "`int32`", "Integer defining the offset in the data stream. For TCP sockets, value must always be set to **0**."
112
112
"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`"
114
114
"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`."
115
115
"Number of Channels", "`int32`", "Number of channels per packet."
116
116
"Number of Samples", "`int32`", "Number of samples sent per channel per packet."
117
117
118
118
.. note::
119
119
120
120
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
0 commit comments