How to run multiple Simulink Real-Time USB inputs at once
조회 수: 4 (최근 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에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!