Programming Reference:SignalSharingDemoClient C++ App: Difference between revisions
| Line 15: | Line 15: | ||
The client application visualizes signal data by plotting normalized signals on a circle. | The client application visualizes signal data by plotting normalized signals on a circle. | ||
<gallery> | <gallery widths="322px" heights="352px"> | ||
File:SignalSharingDemo1.PNG|Client application waiting for data | File:SignalSharingDemo1.PNG|Client application waiting for data | ||
File:SignalSharingDemo2.PNG|Client application displaying data | File:SignalSharingDemo2.PNG|Client application displaying data | ||
Revision as of 14:08, 7 February 2019
Location
src/contrib/SignalProcessing/SignalSharingDemo
Synopsis
The SignalSharingDemo signal processing module demonstrates how to share signal data with an external application, using shared memory.
Inheritance
The SignalSharingDemoFilter signal processing filter derives from GenericFilter.
Function
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.
-
Client application waiting for data
-
Client application displaying data
Parameters
SignalSharingDemoClientAddress
IP address and port number of the client application.