Create custom arduino simulink blocks to use existing arduino libraries

1 vue (au cours des 30 derniers jours)
Aditya
Aditya le 1 Oct 2012
Commenté : Kamlesh Vaghela le 1 Août 2018
Is there a tutorial on how to create custom simulink blocks that encode standard arduino libraries, such as the lcd display library? I think you have to create your own s-functions. Also can you expose the s-functions that are behind the included arduino block library - that way other people can build and create new blocks.
  1 commentaire
Kamlesh Vaghela
Kamlesh Vaghela le 1 Août 2018
How to create costom library and arduino block in existing lib

Connectez-vous pour commenter.

Réponses (3)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer le 11 Fév 2013
Hi Aditya. You might be interested in the "Device Drivers - Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples" by Giampiero Campa at http://www.mathworks.com/matlabcentral/fileexchange/39354-device-drivers

Kaustubha Govind
Kaustubha Govind le 1 Oct 2012
You can use the Legacy Code Tool to automatically generate S-function wrappers for any custom C code. You should be able to use this tool to produce your own LCD Display block that links to Arduino libraries,.
I'm not sure if there are any Intellectual Property reasons for the Arduino block library S-functions to be hidden, so I'll leave that part of your question unanswered for someone who's more familiar with the product to comment on. You might also want to consider submitting an enhancement request via MathWorks Tech Support so the corresponding development team can consider this for a future release.

Guillermo
Guillermo le 12 Avr 2013
I've been recently trying to do the same and found the following site with some instructions and hints as to what needs to be done. I would eagerly collaborate if anyone wants to put an instructable or tutorial package to do this for Arduino or Raspberry Pi or both.
Perhaps we can get the programmer from that made the Servo Block library engaged...

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by