Hi Alexander,
The error messages mentioned above in the attachments indicate that there is a mismatch in the dimensions or widths of the input and output ports in your Simulink model.
According to the warning, "Bus Assignment" block is expecting a bus with a specific structure, but the input you're providing (from "CreateBus HydBrakeCU") does not match this expected structure.
Moreover, the question marks (?) in the "Demux-BusSelector" construction indicate that Simulink cannot resolve the signal names. This typically happens when the signals are not properly defined, or the input to the Demux or Bus Selector blocks is not properly connected or configured.
If signals are not connected correctly or their names are not specified properly, Simulink will not be able to assign these signals to the bus, resulting in the errors you see.
In order to resolve the issues, you must:
- Ensure all signals in the "Demux-BusSelector" setup are correctly named and connected.
- Confirm that the bus created in "CreateBus HydBrakeCU" matches the expected structure, especially the number of signals.
- Adjust block parameters to ensure the signal dimensions and names align with what the "Bus Assignment" block expects.
You can also make use of “Model Advisor”, to automatically check for issues with signal connections and bus configurations. You can refer to the following MathWorks Documentation Link for more information on “Model Advisor”: