필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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
Ruger28
Ruger28 2019년 11월 5일
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.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by