Why serial plotter is looking like this? How to resolve?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
4 Kommentare
Walter Roberson
am 9 Jan. 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.
Antworten (1)
Walter Roberson
am 10 Jan. 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);
0 Kommentare
Siehe auch
Kategorien
Mehr zu I2C Devices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!