add From-Block Script

8 次查看(过去 30 天)
SmokingAce
SmokingAce 2015-3-31
回答: TAB 2015-4-6
Hello,
im writing a matlab script and i'm trying do add a From-Block. The goto Block is already in the system but i cant link the goto and the from block. Im looking for something like that:
add_block('Simulink/Signal Routing/From','Test_System'/Tag1',.....
And now i dont know the command to link the Goto and the from. It's a local Tag called 'house'.
Thanks a lot.

采纳的回答

TAB
TAB 2015-4-6
BlkH = add_block('Simulink/Signal Routing/From','Test_System'/Tag1');
set_param(BlkH, 'GotoTag', 'house');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by