필터 지우기
필터 지우기

error in default port dimension function of S-function while running in simulink

조회 수: 28 (최근 30일)
while running the differential equations i am getting the above error

답변 (1개)

Pankhuri Kasliwal
Pankhuri Kasliwal 2020년 11월 25일
Hello,
This issue is conceptually similar to an algebraic loop, but instead of occurring for the value of the data, it is occurring for the dimension of the data. As a possible workaround, go into the Port and Data Manager and explicitly set each signal size to their appropriate values. These values will depend on the logic of your model.
Port and Data Manager can be accessed by following the instruction in the following link:
You can also,
  1. Open the MATLAB Function Block which reported the error, and select Edit Data on the Editor tab. Alternatively select the block in the Model Explorer ( CTRL+H ).
  2. Select each variable corresponding to Input and Output ports, and in the Size edit box, specify the correct dimensions. The default is -1 or 'inherited', meaning automatically determined.
  3. Steps 1 and 2 may need to be repeated for other MATLAB Function Blocks in the model if they subsequently generate similar errors now.

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by