Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically Labeling a Signal in Simulink

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?

like image 787
celestialorb Avatar asked Dec 06 '12 19:12

celestialorb


1 Answers

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');
like image 152
TobiasP Avatar answered Sep 29 '22 09:09

TobiasP