The ability to associate outputs of a “Demux” Block (containing multiple outputs) with “Simulink.Signal” objects is not available in Simulink.
Note that a “Demux” containing multiple outputs generates virtual signals. It is not possible to name, rename, or associate “Simulink.Signal” objects with virtual signals.
To work around this issue, convert the virtual signal to a nonvirtual signal. You can do this using any of the following:
- Signal Conversion block
- Data Type Conversion block
- Gain block whose "Gain" value specifies 1
The nonvirtual signal output by these blocks can be named or associated with a “Simulink.Signal” object.