MATLAB: How to copy all port names to the attached signal lines in Simulink 6.0 (R14)

inportlevellinelinesnameoutportportportsrootrtwsignalsimulink codersimulink.parametersimulink.signal

When I generate code with Real Time Workshop 6.0 (R14) the line names are used for the input and output variables in the generated c-code. I am looking for a way to copy all port names to the attached signal lines.

Best Answer

You can use a MATLAB script to copy the port names to the signal lines in Simulink 6.0 (R14).
There is an example attached to this solution. The script is called when you press the blue subsystem.