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

6 Ansichten (letzte 30 Tage)
Torsten Knodt
Torsten Knodt am 26 Jul. 2012
Kommentiert: Shawn Bonneau am 18 Jun. 2019
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

Antworten (1)

Engenuity
Engenuity am 1 Nov. 2017
bump
I am getting invalid data type ID -10
  2 Kommentare
sst
sst am 15 Mär. 2018
I am getting this error when I attempt the model build. However, the same model simulates correctly. R2013a x64.
Shawn Bonneau
Shawn Bonneau am 18 Jun. 2019
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by