How to read Arduino Output in Simulink by realtime?

4 ビュー (過去 30 日間)
Christian Vieri
Christian Vieri 2024 年 4 月 18 日
コメント済み: Christian Vieri 2024 年 4 月 18 日
Hi, I want to read Arduino Output by real time in Simulink.
I have program to read digital input from IR Proximity Sensor in Arduino IDE. Then the output from program is the one I want to read through Simulink. Is there any idea?
I have read and search for this topic, the current solution is Copy and Paste the serial monitor, but it can't be done in simulink.

回答 (1 件)

Venkat Siddarth Reddy
Venkat Siddarth Reddy 2024 年 4 月 18 日
編集済み: Venkat Siddarth Reddy 2024 年 4 月 18 日
Hi Christian,
You can try to get send data through the digital pin of the board and capture it in simulink using "Run on hardware" mode.
Checkout the following video, to learn more about real-time acquisition in arduino using simulink:
Hope it helps!
  1 件のコメント
Christian Vieri
Christian Vieri 2024 年 4 月 18 日
Hello there, I have already try this method.
Actually, what I need is to read the read after signal processing in arduino.
Digital input from IR Proximity as the input for tracking rotation speed of motor.
What I want to read is the speed result after calculation in Arduino.

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

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by