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

1 次查看(过去 30 天)
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.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by