Arduino Simulink I/O

2 visualizaciones (últimos 30 días)
Jonathan
Jonathan el 13 de Abr. de 2012
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 comentarios
Dan Lluch
Dan Lluch el 16 de Abr. de 2012
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 el 17 de Abr. de 2012
Simulink
R2012 with the arduino mega 2560.
http://www.mathworks.com/matlabcentral/fileexchange/35641

Iniciar sesión para comentar.

Respuesta aceptada

Gautam Vallabha
Gautam Vallabha el 30 de Abr. de 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.

Más respuestas (0)

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by