I'm attempting to write a script that generate a basic Simulink model and I'd like to know if there's a way to programmatically label a signal line. I've looked at the add_line function (which is what I'm using to add the lines), but I don't see an option for defining anything like a Name or Label property.
Is there a way to do this?
add_line
returns a handle to the newly created line, so you could also write:
lineHandle = add_line('sys','oport','iport');
set_param(lineHandle, 'Name', 'yourSignalName');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With