Simulink Assignment block index value error

조회 수: 12 (최근 30일)
Ju Ho Chung
Ju Ho Chung 2020년 5월 27일
답변: Tasneem 2022년 7월 12일
Hello,
When I used the assignment block, I got the error message like the below.
Element 1 of input port <Idx1> in 'xxx/Assignment' has a value of 2. This value is not within the range of permissible values (0 through 1) that allows assignment of a valid data element.
I don't know where I can control the permissible values for the index range.
Please help me to resolve this error.

답변 (1개)

Tasneem
Tasneem 2022년 7월 12일
It is my understading that you are using Assignment blocks and the element of input port has a value of 2 but this value is out of permissible range which is (0-1) in your case. It seems that you have selected Index mode: zero-based and provided Idx1 input which contain index values based one-based indexing.
Set the Index mode: one-based in the block parameter of the Assignment block in Simulink to resolve the issue.

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by