Arduino Simulink I/O

1 view (last 30 days)
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?
Jonathan on 17 Apr 2012
R2012 with the arduino mega 2560.

Sign in to comment.

Accepted Answer

Gautam Vallabha
Gautam Vallabha on 30 Apr 2012
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by