- Download the free support package that helps you generate appropriate code from your Simulink model, builds it and the downloads it on to the Arduino with a click of a button.
- Once you see this support package in the Simulink library browser, identify the input and output driver blocks to your application (Digital Input or Analog Input etc., Digital Output or PWM or Servo Write etc.) and use them appropriately for your PID inputs and outputs.
Generate C Code from Simulink and place it into Arduino?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello.
I have made a super easy PID controler in Simulink. The PID controler is into a subsystem. The subsystem has two inputs (SET, Analog) and one output (Interval).
I can generate that subsystem by right click C/C++ -> Build System.
Then i also get a report about the code. The problem is that i expect just one or two c-files (header and C-file). But i got many C-files so it confusing me.
What should i do with all these files? This is a tiny subsystem and i don't want more that 4 files.
What should i do? Did i have done the right thing or are setup wrong?
0 Kommentare
Akzeptierte Antwort
Swarooph
am 7 Okt. 2016
You should do 2 things.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modeling 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!