I understand you are facing issue in initializing simulink signal. Below are the steps that may help you in resolving the issue.
- Use a Constant Block: Instead of initializing the signal directly, use a Constant block in your model to set the initial values for the bus signal. Configure the Constant block to output a bus signal by specifying the bus object as its data type.
- Initialize in a MATLAB Function Block: You can initialize the bus signal within a MATLAB Function block. This block can output the required bus structure, and you can set its initial values programmatically.
- Use the Bus Assignment Block: If you need to set only specific fields of the bus, you can use a Bus Assignment block to assign initial values to certain fields of the bus signal.
You can also consider upgrading to a newer version of MATLAB.
Hope that helps!