Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Technical
Technical el 9 de En. de 2023
Respondida: Walter Roberson el 10 de En. de 2023
  4 comentarios
Technical
Technical el 9 de En. de 2023
How to visualize the data using this code?
Walter Roberson
Walter Roberson el 9 de En. de 2023
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.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 10 de En. de 2023
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

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by