baudrate limitaions for plotting real-time data

조회 수: 2 (최근 30일)
farbod bijary
farbod bijary 2022년 6월 27일
답변: arsal javed 2022년 7월 11일
Hi, I'm trying to plot some real-time data recieved from an Arduino Uno R3 in matlab R2020b but I'm not sure what baudrate should I set for data transfer. In my case the higher the baudrate is better but if I cant graph it properly it would be of no value. I want to know if I set the baudrate to max (which is 2000000) and since every sample I recieve from arduino would be 10 bits long (it's a number between 0 to 1.1) will I be able to plot them in real time efficiently? is Matlab able to do that?
CPU: intel core i3 1005G1

답변 (1개)

arsal javed
arsal javed 2022년 7월 11일
hi farbod
yes matlab is able to plot real time data coming from an arduino but to do this u will have to implement the circuit in simulink as far as the baudrate is concerned
u can simply use
codertarget.arduinobase.registry.setBaudRate('your simulink file name',9600)
i would recomend 9600 baud rate as it works well with matlab

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by