Arduino Simulink I/O

조회 수: 3 (최근 30일)
Jonathan
Jonathan 2012년 4월 13일
Is there a way to set a pin as a output in a simulink model, and then set the same pin as a input later on?
  댓글 수: 2
Dan Lluch
Dan Lluch 2012년 4월 16일
Can you let us know which arduino package you are using with Simulink? there are 3 different ones:
2 here - http://www.mathworks.com/academia/arduino-software/
The MATLAB one has Simulink blocks for host-based connectivity
And this one as an example production target:
http://www.mathworks.com/matlabcentral/fileexchange/30277
Jonathan
Jonathan 2012년 4월 17일
Simulink
R2012 with the arduino mega 2560.
http://www.mathworks.com/matlabcentral/fileexchange/35641

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

채택된 답변

Gautam Vallabha
Gautam Vallabha 2012년 4월 30일
With the Run on Target Hardware capability (in R2012a), the pin state is not tunable, i.e., you cannot set a pin an an output and then switch it to input while the application is running on the Arduino.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by