Plot data in real time

5 次查看(过去 30 天)
Inna Forsiuk
Inna Forsiuk 2021-2-4
Hello,
I am trying to plot the data in the real time. The data is acquired from the emg device which is connected to the real time target machine (Speedgoat). The communcatin is established through the TCP socket.
EMG device is sending each sample time of the target machine different length of the acquired data. One sample time of the target machine is equal to the 6 samples of the emg device. The length of the data could be seen on the file 'data length'.
In that case it was implemented the code which concatenates each time the acquired data, until the data's length is equal to 48 . It works like a buffer.
Now when I am trying to plot the data of the length 48, in the data inspector I can see the steps between 0 and the acquired data value( which coressponds to the received length of 48 ) (see picture 3). On the picture you can seen each step time the data has nonzero values. It is coresponds to the received length of 48.
For this reason to remove the zeros in the real time signal I put rate transmition block wich takes each 24ms the input signal and get it to the output. But in this case I lose the data.
Do you have any idea how to solve this problem?
Thank you in advance

回答(1 个)

Pratheek Punchathody
"ScrollPlot - scrollable X/Y axes" is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation"

标签

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by