how to implement Matlab gui code in FPGA Board

hi everyone,i have an application developped in matlab gui and want to implement it in a FPGA Board, i don't know from to start.can you please explain in step by step how to do this.
thank you

 Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Mayo de 2017

0 votos

You cannot do that. FPGA do not have any plotting / gui routines.
You could have a look at https://www.mathworks.com/products/vision-hdl.html -- since it would theoretically be possible to compute every pixel for what you want to display on your GUI.

6 comentarios

best16 programmer
best16 programmer el 19 de Mayo de 2017
Editada: best16 programmer el 19 de Mayo de 2017
thank you.
actually i have a two questions i will not use the gui for image processing ,it will used to plot some curve .is that still impossible?
the second question what do you propose as another alternative for FPGA?
Walter Roberson
Walter Roberson el 19 de Mayo de 2017
I was going to say that FPGA do not have a display, but it turns out that some of them do. See https://www.mathworks.com/matlabcentral/fileexchange/20532-writing-characters-to-lcd-display-on-xilinx%C2%AE-spartan%C2%AE-3a-fpga-board
If you need something higher resolution than a small LCD display, then you will need to either use a different device completely (not FPGA), or else you will need to connect the FPGA to a device. Some FPGA have analog lines that can be driven to control external analog devices (for example a CRT), or you could have the FPGA send digital data to a device that knew how to handle displaying it. One way of sending digital data to display is to use the Vision HDL package, which provides a framework to create pixel-oriented digital data to be passed out to a device that creates video from the pixels.
is it possible to use a Raspberry Pi or arduino with the gui application?
Walter Roberson
Walter Roberson el 20 de Mayo de 2017
Yes, with the Raspberry Pi you can control the 8 x 8 LED matrix, so you could draw one character at a time
There used to be a website named guimp that had an amazing number of games and features packed into 18 x 18 pixels. See for example their pacman. So you might want to use a 2 x 2 matrix of raspberry pi to reach 18 x 18 pixels to improve your gui interface.
thank you that was really helpful.
can you please explain what do you mean by improve gui interface?
Walter Roberson
Walter Roberson el 20 de Mayo de 2017
Well, an 8 x 8 pixel display is really hard to work with -- just barely big enough for one character. But the work of guimp shows that you can do useful work in 18 x 18 pixel (though, mind you, the author of guimp had multiple colors and intensities to work with.) So if you were to take 4 raspberries and arrange them in a square, then you would have 16 x 16 pixels to work with, and perhaps that would be enough to do something readable with. Maybe not, considering there would be a gap between the 8 x 8 subsections.
Perhaps it would be better to arrange the four in a row so you could use four character words like 'stop' and 'run?'.
Hmmm, maybe even just one board would be enough. You could cycle through symbols like up-arrow and down-arrow, and the user could just wait until the one they wanted came around again and press (whatever) then. Or if you added in the joystick you could do one character at a time the way that you enter your name in the high score of a video game.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Code Generation en Centro de ayuda y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by