Connecting MATLAB App Designer Lamp to Signal in Simulink Realtime
10 次查看(过去 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!