Error related to signal dimension - Unable to determine signal dimensions.

63 ビュー (過去 30 日間)
Shelma George
Shelma George 2024 年 12 月 16 日 6:28
回答済み: Kautuk Raj 約18時間 前
I am doing an EV simulation on simulink. While simulating the system I got one error. The screenshot of the error message is attahced. The error showing switch is present inside the DC-DC converter, which is connected to the FC system. The image of that connection is also shown. Can anyone help me to solve the issue?
  5 件のコメント
Saurav
Saurav 2024 年 12 月 26 日 9:07
Can you attach the Simulink Model to investigate better?
Shelma George
Shelma George 2024 年 12 月 30 日 5:59
When using battery alone as a source there is no issue, but when trying to add one more source like fuel cell and make DC link by combining voltage output of battery and fuel cell using mux or bus selctor the problem is arising.

サインインしてコメントする。

回答 (1 件)

Kautuk Raj
Kautuk Raj 約18時間 前
From your description, in the absence of the model file, I would assume that Simulink is unable to determine the size of signals without additional specification. This is especially the case with MATLAB function blocks since the code written inside this block undergoes code generation. The conversion of C-code requires signal dimensionality to be known in advance prior to code generation.
The solution to this is to make use of signal specification blocks to define the size of signals prior to inputting them back into MATLAB function block. You can learn more about it at the following MathWorks documentation page: https://www.mathworks.com/help/releases/R2021b/simulink/slref/signalspecification.html

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by