Error using systemcomposer.utils.importModelClass Unrecognized table variable name 'Type'.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello Community,
While I am trying the code below I got this error message. "Error using systemcomposer.utils.importModelClass Unrecognized table variable name 'Type'."
I checked all the entries in excel file and there is no instance for 'Type'. Also I couldn't find where the 'Type' is defined. Do you have any suggestion on that?
The code:
importAdapter = ImportModelFromExcel('C:\root\dictionary.xlsx','Components','Ports','Connections','PortInterfaces','RequirementLinks');
importAdapter.readTableFromExcel();
[archModel,custIdUUIDTableContainer, importLog, errorLog] = systemcomposer.importModel('MO_Tryout_',importAdapter.Components,importAdapter.Ports,importAdapter.Connections,importAdapter.Interfaces,importAdapter.RequirementLinks);
assignin('base','errorLog',errorLog);
The error:
Error using systemcomposer.utils.importModelClass
Unrecognized table variable name 'Type'.
Error in systemcomposer.importModel
Error in Create_MO_model_R2020b (line 6)
[archModel,custIdUUIDTableContainer, importLog, errorLog] =
systemcomposer.importModel('MO_Tryout_',importAdapter.Components,importAdapter.Ports,importAdapter.Connections,importAdapter.Interfaces,importAda
1 commentaire
Réponses (1)
Josh Kahn
le 15 Avr 2024
Are you still having an issue with this?
A nice trick for debugging these import issues is to first make a representative basic model in System Composer and then export it to a table:
Then, look at the format of the exported table and use that as a guide for creating/reworking your real table data that you are trying to import.
Hope this helps,
Josh
0 commentaires
Voir également
Catégories
En savoir plus sur System Composer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!