How to run multiple Simulink Real-Time USB inputs at once
2 views (last 30 days)
Show older comments
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!
0 Comments
Answers (1)
Brandon Stevens
on 11 Mar 2024
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
0 Comments
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!