フィルターのクリア

How do define BaudRate from MATLAB to Arduino?

2 ビュー (過去 30 日間)
ori yungrise
ori yungrise 2018 年 8 月 21 日
コメント済み: Guimin Long 2022 年 5 月 5 日
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.

採用された回答

Arpita Agrawal
Arpita Agrawal 2018 年 8 月 28 日
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
  2 件のコメント
Teresa Carneiro
Teresa Carneiro 2021 年 6 月 14 日
Hello! I'm using matlab 2021 version. Am I still not able to do this? I have the exact same problem. I'm able to get a real time plot of voltage that my arduino measures but only at a few tens [Hz], and I need it to be at 1000Hz. Can I do this using arduino or should I use other board like DAQ or Raspberry Pi?
Guimin Long
Guimin Long 2022 年 5 月 5 日
Hi Teresa. Have your problem solved? I also have the same problem. no matter with matlab or simulink , there are only limited sample rate(less than 200 Hz) is available.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by