MATLAB: Arduino Simulink I/O

arduinoi/oinputoutputsimulink

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?

Best Answer

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.
Related Question