Info

この質問は閉じられています。 編集または回答するには再度開いてください。

add GUI dialogue box when event happens

1 回表示 (過去 30 日間)
Tiberius
Tiberius 2014 年 9 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Geoff Hayes
Geoff Hayes 2014 年 9 月 11 日
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 2014 年 9 月 11 日
Hi Geoff,
Thanks for your answer.
You should have posted this as an answer though!

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by