Simulink message "Attempt to use invalid data type id 17"

조회 수: 7 (최근 30일)
Torsten Knodt
Torsten Knodt 2012년 7월 26일
댓글: Shawn Bonneau 2019년 6월 18일
Hello, how can I find out which data type corresponds to a specific id when getting the message "Attempt to use invalid data type id 17" from simulink? This sporadically occurs when executing my model init function.
Thanks in Advance Torsten Knodt

답변 (1개)

Engenuity
Engenuity 2017년 11월 1일
bump
I am getting invalid data type ID -10
  댓글 수: 2
sst
sst 2018년 3월 15일
I am getting this error when I attempt the model build. However, the same model simulates correctly. R2013a x64.
Shawn Bonneau
Shawn Bonneau 2019년 6월 18일
For the "invalid data type ID -10" error, I ran into this one while incorrectly indexing into a Simulink.Parameter object. There was an extra ".Value" in the Simulink dialog where it was used (similar to the way you would access that value from the MATLAB command window). Indexing to the parameter value without the ".Value" portion resolved the invalid data type error.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by