Hi, we are generating simulink via m script and using add_line but this doesn't seem to work for adding a line to or between if condition and action blocks as they don't have port numbers. Is there another command to do this? Thanks Colin
MATLAB: How to connect to IF and IFACTION blocks programmatically
simulink script add_line if
Related Question
- How to connect multiple input and output ports using a single ADD_LINE function call in Simulink 6.5 (R2006b)
- Delete a block and close an unconnected line with Ground & Terminator
- Any way to figure out what your blocks are connected to in a model
- Removing a block and making connections
- Add and delete Line and port
- How to find the names of the ports within a subsystem that an external block is connected to in Simulink through the MATLAB command line
Best Answer