Unable to determine signal dimensions

15 次查看(过去 30 天)
I am moving a model from 2010a to 2016b. The model works fine in 2010a. When I move to 2016b, I get this error "Unable to determine signal dimensions. There is a loop consisting of 'base/From2' that cannot be resolved because signal dimensions are defined by a cyclic relationship."
Basically, my base model has four blocks that all have buses with lots of signals on them. If I grab the signals I need for a given block at the top 'base' level and THEN input them to the block using them, this problem goes away. But if I take a bus signal and input that to a couple of different blocks and grab the individual signals inside the block using the signal, it gives me this error. I can use a bus structure to solve the problem, but I prefer to not use it because our bus is extremely complicated and has a lot of variables that vary in size from run to run, which gets complicated with the bus structure.

回答(1 个)

Mark McBroom
Mark McBroom 2018-4-28
You could try placing a signal specification block on the signals that are giving you problems. Place the block on the signal before the bus is created and specify the Dimension of the signal.
  1 个评论
Bryan Callaway
Bryan Callaway 2019-1-15
编辑:Bryan Callaway 2019-1-15
I have a similar problem popping up all over my model. The first instance I solved by moving the bus out of the function, as described in the orignal problem statement; the next instance I solved by adding a signal specification. But now I am getting errors that the signal specification block apparently does not solve, where I would rather not move the bus outside.
EDIT: Enlarged the screenshot.
Additional edit: turns out that, far away from here, I was giving a bus as an input where I should have been selecting one element from a bus. Apparently the output to that input became an array the size of the bus and looped, resulting in an explosion of bus dimensions, hence 29(917477) in the image below. All of this hapenned far away from the bus selector that Simulink highlighted.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Interactive Model Editing 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by