Signal name from index list
Get the signal name for signal index
tg = slrt; signal_name = getsignalname(tg,29)
signal_name = 'transmission/Torque Converter/turbine'
signal_index— Index number of the signal
Index as shown in the
Signals property of the real-time application. To be accessible via signal index, you must be able to observe the
Signal access by signal index will be removed in a future release. Access signals by signal name instead.
signal_name— Block path name of the signal
The signal name refers to the block path of the block whose output is the specified signal. The software constructs the name according to these rules:
If the block has more than one output port,
'/pn' is appended to the signal name.
n is the port number (starting at
If the output port is not a scalar,
appended to the signal name. The number
n is the
index of signal
signal_index within the vector or
matrix. For this purpose, the signals are flattened to one
dimension. For example, the signals
/s4 represent a
2 x 2
rules result in the behavior listed in this table.
|Output Port||Signal Name|