How to run multiple Simulink Real-Time USB inputs at once
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!