Port Size on a Bus Selector block

I am using a Bus Selector Block to pick a particular signal object from a bus. I get the following error:
Error in port widths or dimensions. Output port 1 of 'SimulinkModelName/MATLAB Function Block' is a [55x1] matrix.
Error in port widths or dimensions. Input port 1 of 'SimulinkModelName/Bus Selector' is a one dimensional vector with 1 elements.
The MATLAB Function Block is where the bus signal is coming from and goes into the Bus Selector.
How can I get the Bus Selector inlet port dimensions to match the MATLAB Function Block outlet port dimensions?

댓글 수: 2

Kaustubha Govind
Kaustubha Govind 2011년 11월 9일
Are you sure that your MATLAB Function Block has a bus as its output? According to the error, it seems that it is a 55x1 matrix type.
Jon
Jon 2011년 11월 9일
I had assigned the output port to a bus object but also assigned a size. I removed the size and just left it as a bus object assignment and now I'm getting a different error, unrelated to the output port, so I think that may have solved it.
Thanks.

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

 채택된 답변

Jon
Jon 2011년 11월 9일

0 개 추천

Thanks Kaustubha,
I had the output over-defined. Removing the size and leaving the bus object assignment fixed the problem.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

질문:

Jon
2011년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by