You can indeed set signal properties like”Name” from the command, but the trick is you have to get the handle first. The easiest way to get the handle is through the block whose *outport* is connected to the signal. Do not use the inport of the block that the signal feeds to, as the properties will be read-only there.
Here is a simple example:
1. Open up a demo model called vdp.mdl
2. Let’s say I want to set the name of the signal coming out of the gain block “Mu” to be “blah”.
You can indeed set signal properties like”Name” from the command, but the trick is you have to get the handle first. The easiest way to get the handle is through the block whose *outport* is connected to the signal. Do not use the inport of the block that the signal feeds to, as the properties will be read-only there.
Here is a simple example:
1. Open up a demo model called vdp.mdl
2. Let’s say I want to set the name of the signal coming out of the gain block “Mu” to be “blah”.