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

 채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 25일
편집: Walter Roberson 2017년 12월 26일

0 개 추천

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

Vibin Kumar
Vibin Kumar 2017년 12월 26일
Thanks for your reply sir, Please mention those third party libraries
Walter Roberson
Walter Roberson 2017년 12월 26일
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 2017년 12월 26일
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 2017년 12월 26일
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 2017년 12월 27일
Thanks for your reply sir.Please tell about simulink abilities that you mentioned
Vibin Kumar
Vibin Kumar 2017년 12월 27일
or else please give me the procedure to program for this situation

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

질문:

2017년 12월 25일

댓글:

2017년 12월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by