Plot data in real time

조회 수: 6 (최근 30일)
Inna Forsiuk
Inna Forsiuk 2021년 2월 4일
답변: Pratheek Punchathody 2021년 2월 8일
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
Pratheek Punchathody 2021년 2월 8일
"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"

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by