How to write Driver Blocks for Arduino on the new 2012b Version?
2 views (last 30 days)
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 :)