How to run multiple Simulink Real-Time USB inputs at once

3 ビュー (過去 30 日間)
Troy
Troy 2024 年 2 月 17 日
回答済み: Brandon Stevens 2024 年 3 月 11 日
I'm using Simulink Real-Time to control a robotic system with CAN communication, connected to my computer via USB. I want to add an additional IMU sensor using another Arduino, but I haven't been able to communicate with both at the same time.
I can either use Simulink Real-Time with the CAN communication, or use the Arduino hardware support package for the IMU sensor (LSM6DS3), but am unable to do both simuaneously.
Does anyone have a solution?
Thanks!

回答 (1 件)

Brandon Stevens
Brandon Stevens 2024 年 3 月 11 日
Hi Troy,
I believe you are saying you have a limitation on your host computer, where you only have IO to talk to either the SLRT Speedgoat target or an Arduino.
How about you have the Arduino or sensor communicate directly with the Simulink Real-Time target? For example, if it communciates over serial you could use the serial pins on the target to get the information from the IMU sensor. If your control code on the target is the destination for that IMU sensor output, that may be more efficient.
Best,
Brandon

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by