MATLAB Answers

0

How do define BaudRate from MATLAB to Arduino?

Asked by ori yungrise on 21 Aug 2018
Latest activity Answered by Arpita Agrawal on 28 Aug 2018
I want to acquire data from Arduino and to plot it in MATLAB. I noticed that this process is very slow so, the sampling rate is just about a few tens [Hz]. Is there a way to increase the Baudrate of the Arduino board(Due), in the MATLAB script? IS there any other way to plot faster data from Arduino to MATLAB? e.g. about 1k [Hz]? I saw a few posts about it from the past but, yet cannot find a good answer.

  0 Comments

Sign in to comment.

1 Answer

Answer by Arpita Agrawal on 28 Aug 2018
 Accepted Answer

Hi Ori,
Currently, there is no direct way to change the BaudRate with MATLAB SPPKG for Arduino. We will consider adding this feature in a future release. Until then, please refer to the post by Madhu in the thread at the link below, to be able to change the Baud Rate: https://ch.mathworks.com/matlabcentral/answers/259906-arduino-support-package-baud-rate
Thanks Arpita MATLAB Hardware Team - MathWorks

  0 Comments

Sign in to comment.