How do I call a saved file in Raspberry pi into my simulink stand alone code running in the Raspberry pi?
1 次查看(过去 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!