Borrar filtros
Borrar filtros

Simulink: Obtaining propagated signal names programmatically

31 visualizaciones (últimos 30 días)
sst
sst el 12 de Dic. de 2011
Comentada: Fangjun Jiang el 11 de Mayo de 2020
Hi, I am trying to obtain the propagated signal name for a signal programmatically. For example:
porthandles = get(gcbh, 'PortHandles');
linehandle = get(porthandles.Outport(1), 'Line');
%Assume that the SignalPropagation property is turned off
%As soon as the command below is executed, the name '<PropagatedName>' appears
%on the line in the Simulink model
set(linehandle, 'SignalPropagation', 'all');
Now, is there a property associated with linehandle that lets us obtain this propagated signal name? The 'Name' property returns an empty string.
Thanks.

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 14 de Dic. de 2011
get(porthandles.Outport(1),'PropagatedSignals')
  4 comentarios
Praveen Kumar
Praveen Kumar el 11 de Mayo de 2020
Hi Lukas,
Is it possible to change the propagated signal. if yes, please tell me the way(programmatically).
Fangjun Jiang
Fangjun Jiang el 11 de Mayo de 2020
The signal label is "propagated" so can't be modified at downstream. If you want to change the signal label, change it at its source or simply name it something else directly.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by