SimulinkでA​rduinoと通信す​る際に発生する遅延に​ついて

9 visualizaciones (últimos 30 días)
kazuya h
kazuya h el 3 de Jun. de 2022
Arduino①から出力されたデータをシリアル通信(Instrument Control ToolboxのSerial Receiveブロックを使用)でSimulink(PC)へ読み込み、Simulink(PC)からもう一つ別のArduino②へSimulink Support Package for Arduino Hardwareのdigital outputブロックを用いて信号を送るモデルを作成しました。
しかし、Arduino①でデータを起こしてから、それをSimulinkを経由してもう一方のArduino②で信号を読み込むまでに実時間で7~8秒ほどタイムラグが発生してしまいます。原因が不明なのですが、ライムラグは0.5秒以内に納めたいと思っています。
ご存じの方がおられましたら解決策を教えていただきたいです。

Respuestas (0)

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!