Displaying real time clock in a table in Matlab GUI with Arduino sensor data

2 visualizaciones (últimos 30 días)
I am working on a SCADA project and I like to display sensor data from the Arduino and the real time clock since it is real time data aquisition. How would I do this?

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Sept. de 2015
Have a timer start a routine that reads the current uitable Data property, updates an entry with the current time, sets the new values as the Data property, and uses drawnow() to update the display.
Caution: timers can interrupt running graphics routines. If you have a different graphics routine that is reading and updating the uitable then you could end up a display update missed.
... but why not just update the display when you fetch the sensor values and update the static texts?
  1 comentario
asdf asdf
asdf asdf el 17 de Sept. de 2015
Editada: asdf asdf el 17 de Sept. de 2015
In my project, I will take 5 variables from the arduino using fscanf that I would like to print in the table. I don't know how to do it. Please give me an example.

Iniciar sesión para comentar.

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by