Why do I get block errors (StartFcn and StopFcn: matrix dimensions must agree) with simulink signal builder?

1 回表示 (過去 30 日間)
Julia
Julia 2014 年 5 月 27 日
回答済み: Fei Yuan 2015 年 8 月 28 日
Hey Guys,
I used the slvnvmakeharness - command to create a harness model. The signal builder in this harness model contains 156 signals, but I have to manipulate only a few.
So I created five different signal groups and changed the signals I needed to a constant 1 and square signals (values 1 and 0).
Four of the five groups run perfectly, but the fifth group causes the two errors mentioned in the heading.
The strange thing is, if I restart Matlab, it is possible, that the signal, which formerly caused the error, is fine, but another signal causes the exact same error.
I have redone the signals several times now, but every time at least one group does not run.
Does anyone have an explanation? Please help me.

回答 (2 件)

Jason
Jason 2014 年 8 月 28 日
I'm currently getting the same error, although in my case it seems to manifest consistently on just one test/set of signals. I have not been able to debug, because the code that throws the error is a .p file and I can't see where the error is occurring.

Fei Yuan
Fei Yuan 2015 年 8 月 28 日
I got the same problem. At first just one group signals reported these errors. Later, all group signals reported these errors. After searching, I realized some unneeded points in the signal might cause the problem. I removed 2 unneeded points for a constant signal and solved the problem.

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by