How do I call a saved file in Raspberry pi into my simulink stand alone code running in the Raspberry pi?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hey So I have a simple simulink code that takes a .mat file as an input and displays a graph. I now have deployed the Simulink code in the raspberry pi. I have put a .mat file in raspberry pi using putFile(rpi,' ') . I want to call this file in my simulink code , which is already deployed in raspberry pi and run it(using sudo ./modelname.elf ) and then get its data to my computer using getFile command. But I am unable to call this file to my simulink code. I was using the To File block for the computer simulations but inorder to run the standalone file saved in raspberry pi,I cannot seem to do so.
댓글 수: 0
답변 (1개)
Von Duesenberg
2018년 2월 17일
I use the To File block to save the output of my standalone model running on my RPi 3, and it works seamlessly. To open a .mat file, you might want to try the From File block.
참고 항목
카테고리
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!