필터 지우기
필터 지우기

Why serial plotter is looking like this? How to resolve?

조회 수: 2 (최근 30일)
Technical
Technical 2023년 1월 9일
답변: Walter Roberson 2023년 1월 10일
  댓글 수: 4
Technical
Technical 2023년 1월 9일
How to visualize the data using this code?
Walter Roberson
Walter Roberson 2023년 1월 9일
That is not matlab code and does not do any plotting. You asked about a specific serial data plotting routine, but to answer that question we need to know which MATLAB-based plotting routine you are using.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 1월 10일
After you have created a serialport object and configured it appropriate,
s = readline(PORT);
values = sscanf(S, 'Rawvalue from Analog input =%f Scaled Value =%f');
rawvalue = values(1);
scaledvalue = values(2);
After that you could plot the appropriate value, such as by using animatedline and addpoints

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by