"Type mismatch in input arguments" error when using "add_line()"

3 vues (au cours des 30 derniers jours)
Lucas S
Lucas S le 26 Juin 2019
Hello !
I'm trying to connect a subsystem with a port with the function add_line() :
allOutportBlock = find_system(sprintf('%s/%s', component_NameValue, subsystem_NameValue),'BlockType','Outport');
for element = allOutportBlock(:)'
add_block('simulink/Ports & Subsystems/Out1',[component_NameValue '/' block_name]);
add_line(sprintf('%s',component_NameValue), element, sprintf('%s/%s',component_NameValue, block_name));
end
But i have the error "Type mismatch in input arguments" and i don't know where is the problem
Thanks you !

Réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing 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!

Translated by