Connecting MATLAB App Designer Lamp to Signal in Simulink Realtime
12 ビュー (過去 30 日間)
古いコメントを表示
I am running a simple simulink model where a constant value 1 or 0 is fed into a Speedgoat digital output block and then the response returns back through a Speedgoat analog input. I have named the respective signals Load1Input and Load1Output. I have used listeners in the past to connect signals to UIAxes but can't workout how to access the data of these signals. Model below:

I want to link these values to Lamps I have running in a MATLAB App Designer application. For instance when Load1Input is 1 turn the lamp red when it is 0 turn the lamp green. For Load1Output it will have to be something like when Load1Output is greater than this threshold turn the lamp green and so on. I need the MATLAB App to update these values in realtime while the model is running in external mode. Is there a way to do this?
Here is the synoptic (MATLAB App Designer) I would like to use to control the model eventually and update load statuses in real time in external mode.

0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!