Does a Raspberry Pi 4B support integrators and transfer functions ?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi everyone,
I did a model on Simulink that I would like to build and compile on my Raspberry Pi. The issue is that, using MATLAB Coder, the .elf file is not build and so the compilation returns the following error:
Model Action Rebuild Reason
===========================================================================
test_continuous Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 29.743s
Error:Cannot identify /home/pi/MATLAB_ws/R2020b/C/Users/../test_continuous.elf. No such file or directory.
My model is using integrators and transfer functions and I saw in the documentation that it might be an issue if the user wants to implement that in a small hardware, such as a Raspberry Pi I supposed. When I discretized the model using Model Dicretizer from the Control System Toolbox, it returns exactly the same error.
I did a very small Simulink model that is attached to this post, and again the same error.
I verified that the "Generate code only" box was unchecked in the Code Generation Tab. By the way, I am using MATLAB R2020b and I cannot change this version as I'm working in a company with it.
My question is that does a Raspberry Pi 4B support integrators and transfer functions at all? or did I not get the good interpretations out of this?
Thanks for any help.
Romain
댓글 수: 0
채택된 답변
Aishwarya
2024년 7월 2일
Hi Romain,
From the following link: https://www.mathworks.com/hardware-support/raspberry-pi-simulink.html, I have checked that Raspberry PI 4 Model B is supported since MATLAB R2020a version. So, it should support in your MATLAB version which is R2020b.
As for the question you have asked if Raspberry Pi 4B support integrators and transfer functions – yes, it is possible to design a control system with discrete integrators and transfer function blocks and deploy it in hardware. You can take the reference from the following example that shows implementation of discrete PID Controller block and how to deploy in hardware: https://www.mathworks.com/help/simulink/supportpkg/raspberrypi_ref/develop-robot-navigation-system-using-raspberry-pi-and-simulink.html
I would also suggest to check the working of Raspberry Pi with Simulink model using some basic example like: https://www.mathworks.com/help/simulink/supportpkg/raspberrypi_ref/getting-started-with-raspberry-pi-hardware.html
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Run on Target Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!