detail steps to realise an algorithm in real-time hardware

조회 수: 1 (최근 30일)
William Campbell
William Campbell 2020년 9월 12일
댓글: William Campbell 2020년 9월 13일
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.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 12일
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.

추가 답변 (0개)

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by