Programming Reference:SignalSharingDemo Signal Processing

From BCI2000 Wiki
Revision as of 16:13, 22 January 2019 by Mellinger (talk | contribs) (Created page with "==Location== <tt>src/contrib/SignalProcessing/SignalSharingDemo</tt> ==Synopsis== The ''SignalSharingDemo'' signal processing module demonstrates how to share signal data wit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search




The SignalSharingDemo signal processing module demonstrates how to share signal data with an external application, using shared memory.


The SignalSharingDemoFilter signal processing filter derives from GenericFilter.


The SignalSharingDemoFilter shares its input signal through a GenericSignal object which has been linked to a shared memory block using GenericSignal::ShareAcrossModules(). A dedicated thread waits for signal updates, and sends signal data out to a separate application waiting on a TCP/IP connection.

When the client application is running on a separate machine, full signal data are sent over the network. When the client is running on the same machine, only a reference to a shared memory block is sent. On the application side, unserializing the signal will transparently bind it to the shared memory block if available.

The client application visualizes signal data by plotting normalized signals on a circle.



IP address and port number of the client application.

See also

Programming Reference:GenericSignal Class