How can I connect custom hardware to MATLAB or Simulink?

1 view (last 30 days)
Hi.
I have a custom board with its own code and I want to use it as a controller in Simulink. How can I connect MATLAB or Simulink to my board and send and receive data from it?

Answers (1)

Jonas
Jonas on 11 Feb 2021
It is not that easy. You will need to create a custom target. There is a step by step workflow for Cortex-A based processors and for Cortex-M based processors. General information can be found here.
If you download a hardware support package for for example Arduino, Raspberry Pi or Beagle board, you are basically downloading such a custom target which someone else has made for you.
  4 Comments
mehrdad n
mehrdad n on 11 Feb 2021
Yes I have my board connected to USB. If I want to use the Simulink Desktop Real-Time, which block I should use? and how?
Jonas
Jonas on 11 Feb 2021
I have no experience with that, but you should google it because I think other people will have done it before.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!