How to use generated code from Matlab simulink in arduino ?

1 Ansicht (letzte 30 Tage)
Hocine YAKOUBI
Hocine YAKOUBI am 10 Okt. 2022
Beantwortet: Prateek am 18 Okt. 2022
Hi,
I am looking, how to use code generated from Simulink in Arduino ?
(I am not speaking about deploy code in arduino, but use generated code), because i will program with arduino IDE.
ANy help or solution ? thanks
  1 Kommentar
Benjamin Thompson
Benjamin Thompson am 11 Okt. 2022
Try looking over these materials and if you have specific questions about your problem then ask a new question with attachments showing your work.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Prateek
Prateek am 18 Okt. 2022
Hello Hocine,
The Arduino IDE uses its own language, which is not directly supported by the Simulink Support Package. Hence the generated code cannot be directly deployed using Arduino IDE.
However, you can modify the generated code by yourself and then deploy it manually. The following link specifies how to do it: Compile Simulink generated code in Arduino IDE? - MATLAB Answers - MATLAB Central (mathworks.com)
Hope this helps.
Regards,
Prateek.

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by