add From-Block Script

1 Ansicht (letzte 30 Tage)
SmokingAce
SmokingAce am 31 Mär. 2015
Beantwortet: TAB am 6 Apr. 2015
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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by