Connecting MATLAB App Designer Lamp to Signal in Simulink Realtime
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Target Computer Setup en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!