Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

add GUI dialogue box when event happens

2 visualizaciones (últimos 30 días)
Tiberius
Tiberius el 11 de Sept. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi. I have a program (lots of functions) which creates an interface and I want to add a dialogue box saying "a router was found" every time the signal level reaches a certain threshold. Also, the signal value is retrieved in real time. My other question is : can I simulate a signal so that I can test the newly added "a router was found" dialogue box.
I attach my code in the hope that anyone can help and apologize that it's in romanian. The graph reads : "power spectral density", and the others are "energy detection parameters" and "data acquisition parameters".
  2 comentarios
Geoff Hayes
Geoff Hayes el 11 de Sept. de 2014
Tiberius - consider using a msgbox such as
msgbox('A router was found','Information')
whenever a signal reaches a certain threshold. (This will be a non-modal dialog; see the link for more details.)
You've only attached the m-file, so we can't run trough the GUI (would need the fig file for that) but you should be able to determine where in the code to add the message box logic.
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh el 11 de Sept. de 2014
Hi Geoff,
Thanks for your answer.
You should have posted this as an answer though!

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by