Setup Arduino in Simulink port connection issue

3 visualizaciones (últimos 30 días)
Sarah
Sarah el 12 de Jun. de 2017
Respondida: Leepakshi el 2 de Abr. de 2025
I am trying to run the simple led tutorial but when I choose the correct port(COM4) it will not connect and I get a timeout error. The default port is DEMO and I don't get an error message and the program runs but it doesn't actually do anything in terms of communicating with the board. Any suggestions?
  1 comentario
Prashant
Prashant el 12 de Jun. de 2023
A basic checklist below :
  1. Check if your arduino is actually on COM4 from Windows Device manager.
  2. Ensure you've selected correct arduino board in simulink hardware configuration
  3. Program your board using Arduino IDE to make sure your board is in working condition.
  4. Ensure your Arduino board is supported by the version of Simulink you're using.
  5. I don't believe there's any "Demo" port in simulink. Did you mean "Auto" ? If so, refer to step 1 above.
  6. Ensure the blocks used in your model are supported by Arduino board.
  7. Verify pin number for your Arduino board. THis always gets me as i work with several version of arduino boards.

Iniciar sesión para comentar.

Respuestas (1)

Leepakshi
Leepakshi el 2 de Abr. de 2025
Hi Sarah,
For this error confirm that appropriate drivers for the board are installed. Also ensure COM4 is the correct port. Sometimes, connections are an issue, verify secure connections with a reliable USB cable.
And if nothing works, try resetting the board or maybe try with another board.
You can refer to below documentation on Arduino:
Hope this will help!

Categorías

Más información sobre Installation and Setup en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by