Borrar filtros
Borrar filtros

MATLAB GUI interfaced with PIC microcontroller via RS232 help needed (should be easy for experienced MATLAD's); as swiftly as may be convenient

3 visualizaciones (últimos 30 días)
Hi Guys.
My application is simple (I think?)
I have a microcontroller hooked up to an RS232 comm port which communicates via RS232 (UART).
From the uC, I am reading temperature values from an attached sensor (see P1 P2 P3 etc. in figure below, these are integer values). This sensor outputs thermal data read in a 4x4 arrangement, about the focus area (there are two of these sensors as seen in figure below). I would like to make a MATLAB gui, capable of reading the data from the UART comms and displaying the number in blocks on screen in real-time. I would also like it if the background of each block reading could gradually change color from blue till read, blue being the coldest blocks and red being the warmest blocks as the read temperatures increase.
Any suggestions? I have NEVER done this before; so please take it easy on me. I am sure that this is easy for you guys.
Where do I start? Below is an illustration of my query:MATLAB GUI.jpg
Would this sort of thing be possible? How difficult is it to acheive (I'm on a tight deadline and I am a complete noob)?
Kind Regards, Sheldon
  1 comentario
Ruger28
Ruger28 el 5 de Nov. de 2019
If you have never made a GUI before, and are new to MATLAB, this is going to be challenging for you. It will be a fairly large work effort needed to accompolish this task. I suggest you look up GUIDE tutorials (depending on your MATLAB version).
but....in terms of flow after GUI created.
  1. READ DATA initiate button
  2. loop and read
  3. update value based on color
Something like that is where I would start.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by