Why do i get question marks?

24 次查看(过去 30 天)
Alexander
Alexander 2023-1-24
回答: Shlok 2024-8-29
Hello,
I have the following problem. I´m currently working on an project, where I got the following error messages (attachements). The errormessages are triggered by the "Bus Assignment"-block, but I think the problem is the "CreateBus HydBrakeCU" subsystem, where the bus should be created. In that subsystem I build a "Demux-BusSelector" construction (attachments) with 28 Signals, but as you can see, there are question marks at the signals. I tried many thinks to solve the problem, but nothing works.
I hope someone can help me with my problem.
The attachments are showing the errormessages, a little overview over the model and the "buscreater".
If you need more information or details, just let me know.
Thank you for your help.
Alex

回答(1 个)

Shlok
Shlok 2024-8-29
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:

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by