detail steps to realise an algorithm in real-time hardware

3 views (last 30 days)
Is there a document that explains how a MatLab script or Simulink Model (Navigation controller) is complied into code and how it can be flashed into a target CPU (Raspberry PI) and how the I/O can be set up to integrate with appropriare sensors and how the hardware I/O can be associated with the algorithm's I/O to enable it to function.

Accepted Answer

Ameer Hamza
Ameer Hamza on 12 Sep 2020
You need the embedded coder to convert the Simulink models for using on an embedded system. If it is a famous hardware platform, there is usually a support package available that provides Simulink blocks to configure and control I/O pins. For example, Raspberry pi has a support package: https://www.mathworks.com/help/supportpkg/raspberrypi/index.html?s_tid=CRUX_lftnav, which shows how to upload the program from Simulink to the board. This support package requires that you have an OS already installed on the board.
If you are interested in bare-metal programming, then Simulink also has support packages for STM32 processors and boards: https://www.mathworks.com/hardware-support/stmicroelectronics.html and TI processors: https://www.mathworks.com/hardware-support/texas-instruments.html.
If any support package does not support a processor, you will most probably need to use S-function blocks and at least write the C code to control the pins.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!