Simulink IF-block issue

조회 수: 1 (최근 30일)
Sandeep
Sandeep 2011년 9월 30일
When I run my model with a huge IF-ELSE block with about 10 different elseif conditions, I get the following error message:
"When using a comma-separated list for specifying inputs to root-level inports, the number of list elements must be equal to the number of root-level inports"
I am actually not even sure if this error message is because of the IF block but I am not really using anything really funky in this model.
Can anyone suggest where I could possibly investigate? Or what exactly the error message really means?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 9월 30일
In your model, click menu Simulation->Configuration Parameters... then click Data Import/Export at the left column, look at the right, do you have "Input" checked, and do you have value for it? The error message seems to me that there are values specified but don't match the number of inports at teh root level.
  댓글 수: 1
Sandeep
Sandeep 2011년 10월 3일
Fangjun, You were absolutely right! Thank you for pointing that out to me...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by