detail steps to realise an algorithm in real-time hardware
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!