Control Arduino using gamepad through simulink

조회 수: 5 (최근 30일)
Amogha Nada Ganesha Annamraju
Amogha Nada Ganesha Annamraju 2021년 1월 9일
Hello I'm trying to control arduino using gamepad in real-time through simulink. I made a simple block to control the on-board LED of Arduino Uno
The arduino uses Arduino support package and the gamepad is from Simulink Desktop Real-Time. I know that boht use different system target files from the error message I receive when I run it.
Error: The system target file is set to "ert.tlc". Simulink Desktop Real-Time block 'LED_Test/Digital Input' requires it to be set to either "sldrt.tlc" or "sldrtert.tlc".
Component:Simulink | Category:Model error
I tried variable-step under solver selection but then it can't run arduino package.
Is there a way to make it work?

채택된 답변

Diego Kuratli
Diego Kuratli 2021년 1월 11일
It is not possible to use Arduino with Simulink Desktop Real-Time in External Mode. However, it is possible to use Arduino with Simulink Desktop Real-Time in Normal Mode. Go to the SIMULATION toolstrip tab and run the model from there.
  댓글 수: 2
Amogha Nada Ganesha Annamraju
Amogha Nada Ganesha Annamraju 2021년 1월 11일
But would I be able to control arduino that way?
Amogha Nada Ganesha Annamraju
Amogha Nada Ganesha Annamraju 2021년 1월 11일
It worked, thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by