I know it is possible to create a system in matlab and connect modules using the <code>connect(SYS, SRCPIN, DSTPIN);</code>syntax, but is there a way to disconnect modules? If I have an existing layout like
INPUT ------> OUTPUT
and I want to put a filter in between the input and the output,
INPUT ------> FILTER ------> OUTPUT
doing something like <code>connect(SYS, 'INPUT', 'FILTER', 'OUTPUT');</code> is throwing the "AWE ERROR:Illegal fan in. There is already a wire connected to OUTPUT"
Is there a way to use the matlab API to insert a module between two other modules/pins or to disconnect two modules so that I can then use the connect command to join them back together?
8:53pm
Hello Peter,
Could you please try <>SYS = delete_connection (SYS, MOD1, PIN1, MOD2, PIN2)</>, outlined at the top of page 71 in the AW Matlab API guide?
Thanks,
Kevin
4:19pm
That was it! Thanks, Kevin.
5:28pm
Hey Peter,
No problem, glad it worked for you.
Thanks,
Kevin