Errors using Embeded MATLAB function block
이전 댓글 표시
I have a funtion in MATLAB which reads from an XML file. I'm trying to run it from simulink but I get some errors about the functions used.
Attempt to extract field 'getElementsByTagName' from 'double'. Inherited types on Simulink bus objects are currently unsupported; to access a Simulink bus you need to set the input type explicitly in the Ports and Data Manager.
Attempt to extract field 'getFirstChild' from 'double'. Inherited types on Simulink bus objects are currently unsupported; to access a Simulink bus you need to set the input type explicitly in the Ports and Data Manager.
....
How can I solve this problem?
Thanks for all
Nerea
답변 (2개)
Kaustubha Govind
2012년 11월 30일
0 개 추천
Are you trying to pass in a structure/Bus signal as input to your MATLAB Function block? If so, you need to define the input type using a Simulink.Bus object. See Attach Bus Signals to MATLAB Function Blocks.
Nerea
2012년 12월 3일
0 개 추천
댓글 수: 1
Kaustubha Govind
2012년 12월 27일
Nerea: Please read from the link in my answer. It still applies to your situation.
카테고리
도움말 센터 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!