Errors using Embeded MATLAB function block
Ältere Kommentare anzeigen
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
Antworten (2)
Kaustubha Govind
am 30 Nov. 2012
0 Stimmen
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
am 3 Dez. 2012
0 Stimmen
1 Kommentar
Kaustubha Govind
am 27 Dez. 2012
Nerea: Please read from the link in my answer. It still applies to your situation.
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!