Dimensions issue with simulink nested bus as input to matlab system

조회 수: 3 (최근 30일)
Lukas
Lukas 2023년 8월 30일
댓글: Ramtej 2023년 9월 4일
I use a matlab system in simulink to check certain values of a simulink nested bus and create an output, that shows the 10 first values of the nested bus, that are higher than 20. The simulink model is used vor code generation.
The matlab system has one input called nestedBus and one output called test.
The nestedBus datatype is defined in a data dictionary. The nestedBus is stored in a data store memory block.
Now, simulink has an issue with the input dimensions to my matlab system.
It shows:
Simulink detected an error
'Dimension 2 is fixed on the left-hand side but varies on the right ([1 x 10] ~= [1 x :?]).'.
From my understanding, simulink has a problem with the input dimension of the nestedBus.
The [1x10] beinig the dimensions of test and [1x:?] being the dimensions of the nestedBus.
But as far as i understand, the Dimensions of the nestedBus need to be fixed anyway.
Otherwise i would not be able to store it in the data store memory block in the first place.
How can i loose my dimensions from reading the data store to the input of the matlab system?
  댓글 수: 1
Ramtej
Ramtej 2023년 9월 4일
Hi Lukas,
Could you please share the MATLAB system class definition file?

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

답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by