Welcome
Guest
, you are in:
<root>
Elements
•
Login
EventIDE Wiki
Navigation
¶
Main Page
Random Page
Create a new Page
All Pages
Categories
Navigation Paths
Administration
File Management
Create Account
Search the wiki
Back
LSL Signal Element
Modified on 2023/05/22 07:06
by
Administrator
Categorized as
Signal Acquisition
<div style="margin-right: 10px; margin-left: 16px; margin-bottom:10px; float: right; width: 500px; overflow: hidden; height: auto; padding: 0px; background: #fafafa; background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa));background: -moz-linear-gradient(top, #fbfbfb, #fafafa);border: 1px dashed #ddd;box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ddd, 0 0 0 10px #fff, 0 0 2px 10px #eee;"> == Summary == {s:Element Info Panel | title=LSL Signal | category=Signal Acquisition | icon=[image|Element Icon|{UP(LSL-Signal-Element)}LSLSignalicon.png] | author= OkazoLab | addin= LSL | scope= Experiment | usage= Background processing | ownsnippets= None } == Properties == {| |- ! Name ! Description ! Constraints ! Type ! On<br/>runtime<br/>change |- | colspan="5" bgcolor="#AADDDDD" | LSL Settings |- | Stream Type | Defines the LSL stream that delivers signal data | {s:atDesign} | String | |- | LSL Stream | Defines which LSL stream will be connected at runtime. You must have the LSL stream running, when you change this property for the first time. Note that the channel configuration of the element is updated each time as you change this property | {s:atDesign} | String | |- | Request Configuration | Retrieves a new channel configuration of the selected LSL stream, if it has been changed since the last stream selection | {s:atDesign} | Boolean | |- | colspan="5" bgcolor="#AADDDDD" | Channel Configuration |- | Actual Sampling Rate | Returns the actual sampling rate of connected hardware after it the configuration request | {s:atStatus} | Double | |- | Sample Type | Returns the actual sampling rate of connected hardware after the configuration request | {s:atStatus} | String | |- | Chink Size | Defines the chuck size (in ms) in signal acquisition | {s:atNormal} | clTime | |- | Selected Channels | Defines what signal channels are selected for acquisition within EventIDE. Selected channels are registered in the EventIDE signal pool at runtime and become available for the signal analysis elements. | {s:atDesign} | List`1 | |- | Selected Channel Count | Indicates how many signal channels are currently selected for acquisition | {s:atStatus} | Int32 | |- | Total Channel Count | Indicates how many signal channels are available for acquisition in the total | {s:atStatus} | Int32 | |- | Buffer Size | Defines the size (in samples) of a circular buffer that stores incoming signal data. | {s:atDesign} | Int32 | |- | colspan="5" bgcolor="#AADDDDD" | Signal Generator |- | Signal Generator | Defines whether signal samples are produces by an oscillatory generator rather than the actual hardware. You can use the signal generator for test runs without hardware | {s:atDesign} | Boolean | |- | Emulated Sampling Rate | Defines the emulation sampling rate (samples per second), when data is generated or streamed from a file. | {s:atDesign} | Double | |- | Primary Frequency | Defines the frequency of the primary rhythm in the generated signal, in Hz. Assign the zero to exclude the primary frequency from the generated signal. | {s:atDesign} | Double | |- | Secondary Frequency | Defines the frequency of the secondary rhythm in the generated signal, in Hz. The secondary frequency magnitude is a half of the primary frequency magnitude. Assign the zero to exclude the secondary frequency from the generated signal. | {s:atDesign} | Double | |- | Noise Level | Defines the noise level (in % to the norm magnitude of the primary frequency). The noise is added to the generated signal. Assign the zero the exclude the noise from the generated signal. | {s:atDesign} | Double | |- | colspan="5" bgcolor="#AADDDDD" | Runtime Control |- | Reset Signals Now | Runtime commands that resets the signal buffers and data acquisition | {s:atRuntimeAction} | Boolean | |- | colspan="5" bgcolor="#AADDDDD" | Control |- | Is Enabled | If set to false the element is completely omitted when the experiment is run | {s:atDesign} | Boolean | |- | Title | Title of the element | {s:atDesign} | String | |- |} == == </div> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--><!--*****************************************************************************************************************************************************************************--> The LSL Signal element reads and buffers numerical signals in an LSL stream generated by connected hardware or another application. The acquired signals can be then used for online processing,visualization and recording in EventIDE. {TOC} == Description == An increasing number of reseacrh hardware and applications add support for the lab streaming layer (LSL) is a protocol, which is designed for the unified collection of measurement time series in research experiments that handles both the networking, time-synchronization, (near-) real-time access as well as optionally the centralized collection, viewing and disk recording of the data. You can find more details on the [https://labstreaminglayer.org/#/|LSL project site]. The LSL protocol was developed in Swartz Center for Computational Neuroscience, UCSD (Copyright 2019, Christian Kothe, David Medine, Chadwick Boulay, Matthew Grivich, Tristan Stenner) The LSL Signal element in EventIDE automatically detects active LSL streams that are generated by research hardware or other applications on the same computer or in a network. Each LSL stream can carry multiple channels, which are treated as separate signals by the LSL Signal element. The element allows you to select one or more channels for processing. Note that the LSL protocol can transfer data in a wide range of formats. The LSL Signal element can only process numerical channels (double, float or integer). As you start your expeirment, the LSL signal element begins reading incoming LSL channels and buffering signal samples for futher online analysis, visualization and recording carried by other EventIDE elements == Practical Use == === Configuring the element === In order to use LSL signals in your experiment, you need to perform an one-time configuration of the LSL Signal element: # Add the LSL Signal element to any event in your experiment. The element is global and will work during the entire experiment run # Make sure that the source LSL stream is running on your system. For example, you may need to start recording on your LSL-compatible EEG amplifier or run software that writes to a LSL stream # Select the LSL Signal element in GUI to access its properties in the Property panel # Set the '''Stream Type''' property to the type of the source LSL stream. You can select the most common LSL stream types from a drop-down list # Open the drop-down list on the '''LSL Stream''' property. The list should show currently active LSL streams detected in your system. Select the source stream. If you know a name of the source stream in advance, you can also type it directly. # Once the stream is selected, the element will automatically retrieve the channel configuration in it and updates the corresponding properties: '''Actual Sampling Rate''', '''Sample Type''', etc. # Finally, open an editor on the '''Selected Channels''' property and select channels for online acquisition. The selected channels can be then accessed by the signal processing elements. === Testing the element with a generated ossilatory signal === If you have no LSL stream available at the moment, you can test the element in the signal generator mode: # Browse properties of the LSL Signal element down to the '''Signal Generator''' group # Set the '''Signal Generator''' property to '''true''' # Choose parameters of the generated signal with the following properties: '''Emulated Sampling Rate''', '''Primary Frequency''','''Secondary Frequency''','''Noise Level''' # Run your expeirment and check processing of the generated signal
Meta Keywords:
Meta Description:
Change Comment:
ScrewTurn Wiki
version 5.2.0.8. Some of the icons created by
FamFamFam
.