Connecting MATLAB App Designer Lamp to Signal in Simulink Realtime
조회 수: 6 (최근 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에서 Target Computer Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!