How to write Driver Blocks for Arduino on the new 2012b Version?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Following the guide "Writing a Simulink Device Driver block: a step by step guide" by Campa I have not been able to successfully write my own driver blocks.
Following this manual to the letter and it appears that at the final step when uploading to the board with "Run On Target Hardware" there are compiler issues....which warn about "redefining" certain functions which causes an abort.
I have installed the target support with targetinstaller and I am able to run the standard in/out/servo blocks with no issue. Also my s functions compile with no problems!
opening a model from the examples gives the following... however s functions will still compile fine. Warning: File I/O error on file 'arduino.tlc' Operation that caused an error: find In general\private\openmdl at 13 In open at 159 In uiopen at 196
I can only reason that there is a new method implemented on the R2012b version and I can not find any documentation for it. :( I am using the "realtime.tlc" in the Target selection but some documents mention "arduino tlc"....
Really stuck here any help would be appreciated :)
2 Commenti
Ryan G
il 13 Mar 2013
Have you tried using the standard arduino blocks first and running on target hardware? You can do a quick setup to make the 13 pin blink and the LED on the hardware should blink. You can do this without changing your hardware setup on the arduino.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Modeling in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!