In the attached model, the Outport block is driven by a Stateflow chart with a Bus Creator in between. Without the bus, there is no error shown below:
An explicit copy of the bus signal driving the Outport block 'Repro/Test/Out1' is needed to ensure correct initialization of the corresponding subsystem's output signal. Insert a Signal Conversion block with the 'Output' option set to 'Signal copy' before this Outport block. An additional signal copy may be required for the following reasons: (1) Outport is driven by a block with non-overwritable output such as a Ground, Constant, or Stateflow block; (2) Outport shares the same signal source with another Outport in the same subsystem or one nested within the current subsystem but having a different initial output value; (3) Outport is connected to an input of a Merge block or (4) A Simulink.Signal object with explicit initial value is being specified on one of Outport's input signals
Best Answer