How can I incorporate functionality for Arduino shields not found in the Arduino library in Simulink 8.0 (R2012b)?

1 view (last 30 days)
I am using Arduino hardware with various add-on modules (shields), and I would like to design a Simulink model to integrate with this hardware. Currently, the "Target for Use with Arduino Hardware" library does not contain any blocks that allow me to interact with the Arduino shields that I am using.
Is it possible to create custom blocks from Arduino libraries which can be used with the Run on Target Hardware feature? Additionally, is it possible to use the student version of Simulink for the entirety of this workflow?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Mar 2023
Edited: MathWorks Support Team on 27 Mar 2023
Following step by step guide on MathWorks File exchange can be used to write your own driver blocks for Run on Target Hardware feature using S function builder:
See this link for more information on S Function Builder :

More Answers (0)

Products


Release

R2012b

Community Treasure Hunt

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

Start Hunting!