For many applications the exchange of data between different computer systems is an important task. Beside digital and analog inputs and outputs also network connections can be used as data exchange. The advantage of network connections lies in the large bandwidth and availability since every PC or notebook is equipped with a network connection. The main disadvantage is that network connections do not work in real-time. But for many application scenarios network connections are the preferred way to exchange information especially since the response time lies normally below 1 ms. It is of course important to use a LAN for the data exchange that is not overloaded with other tasks.


Highlights

Exchange data between MATLAB/Simulink on two PCs over a standard network connection
PCs are just connected with a normal network cable for data exchange
The Simulink blocks can be used per drag-and-drop
Fast data exchange with response time < 1ms
 Allows to interface MATLAB with other software packages

Data Exchange between two PCs running Simulink

On PC #1 this model reads biosignal data from the gMOBIlab device into Simulink and passes the data to the UDP block. The UDP block sends the data over the network connection to PC #2.

gmobilab

The block also receives data from PC #2 and visualizes the data in the Scope block on channel 1. The second channel of the Scope shows the data acquired with g.USBamp.

scope

On PC #2 this Simulink model reads biosignal data into Simulink, converts the data in double precision and sends the data with the UDP block to PC #1. The UDP block also receives data from PC #1 and visualizes the data with the Scope block. The second Scope channel displays the signal amplified with g.MOBIlab+ on channel 1.

gUSBamp


Up