change the color of an input port from a callback function

2 visualizzazioni (ultimi 30 giorni)
Hello,
is it possible to change the color of an input port from a callback function? http://www.mathworks.nl/help/toolbox/simulink/ug/f4-122589.html
thanks in advance

Risposta accettata

Guy Rouleau
Guy Rouleau il 24 Feb 2012
yes, use set_param.
  1 Commento
grapevine
grapevine il 27 Feb 2012
I fish it out
unfortunately it is not that simple
here is the code:
set_param(gcb, 'MaskDisplay', 'color(''red''), port_label(''input'', 1, ''>IN''), color(''black''), port_label(''output'', 1, ''>OUT'')')

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by