Why do i get question marks?

30 Ansichten (letzte 30 Tage)
Alexander
Alexander am 24 Jan. 2023
Beantwortet: Shlok am 29 Aug. 2024
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

Antworten (1)

Shlok
Shlok am 29 Aug. 2024
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:

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by