I don't know how to read .fig files (using GUIDE) from raspberry pi using 7 inch touch display,Please help

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Dez. 2017
Bearbeitet: Walter Roberson am 26 Dez. 2017

0 Stimmen

Raspberry Pi uses a Linux operating system, so you could ftp or scp the fig file to the raspberry pi. Mathworks has published a description of binary format of .mat files, and fig files are really just mat files; you could probably find a library of code to read the files.
However, I am having a hard time thinking of anything useful that you could do with the fig file on the raspberry. The representation of graphic objects is not documented so you would find it difficult to figure out what the data in the fig file represents.
There is no publicly known API for raspberry to be able to read MATLAB fig file graphics objects and do anything with them.
If the intention is to run a Guide GUI on the raspberry pi itself then there is no known way of doing that.
If you want to create user interfaces to run on the raspberry pi, you either need to program all of the graphics and user interface yourself (possibly calling upon published third party libraries), or else you need to code everything as a Simulink model restricting yourself to the interface blocks provided by Simulink for use with raspberry; those can then be Deploy To Hardware

7 Kommentare

Vibin Kumar
Vibin Kumar am 26 Dez. 2017
Thanks for your reply sir, Please mention those third party libraries
Walter Roberson
Walter Roberson am 26 Dez. 2017
https://www.raspberrypi.org/forums/viewtopic.php?f=67&t=167483
https://www.raspberrypi.org/forums/viewtopic.php?t=192273
https://www.google.ca/url?q=http://mindchunk.blogspot.com/2012/09/openvg-on-raspberry-pi.html%3Fm%3D1&sa=U&ved=0ahUKEwjKl47eiqfYAhVCyYMKHcLcDMsQFggZMAM&usg=AOvVaw317AplAb2fBk93fQtv-jsi
Vibin Kumar
Vibin Kumar am 26 Dez. 2017
I followed it,and all those instructions are used to create GUI in linux itself.But I created GUI using two push buttons in matlab ,And I don't know how to enable these push buttons in 7 inch LCD touch display which is connected with raspberry pi via HDMI cable
Walter Roberson
Walter Roberson am 26 Dez. 2017
You cannot do that. MATLAB itself cannot generate graphics or user interfaces for raspberry: that is why I said you will need to program those yourself.
Simulink has some ability to generate graphics for raspberry pi, but it is not very advanced.
Vibin Kumar
Vibin Kumar am 27 Dez. 2017
Thanks for your reply sir.Please tell about simulink abilities that you mentioned
Vibin Kumar
Vibin Kumar am 27 Dez. 2017
or else please give me the procedure to program for this situation

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Raspberry Pi Hardware finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by