How do I call a saved file in Raspberry pi into my simulink stand alone code running in the Raspberry pi?

5 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Von Duesenberg
Von Duesenberg el 17 de Feb. de 2018
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.

Categorías

Más información sobre Run on Target Hardware en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by