getsignallabel

Signal label for signal index

Description

example

signal_label = getsignallabel(target_object, signal_index) returns the signal label for the specified signal index, signal_index.

Note

Signal access by signal index will be removed in a future release. Access signals by signal name instead.

Label the signal for which you request the index by using the Simulink® Signal name parameter. The Simulink Real-Time™ software refers to Simulink signal names as signal labels.

Examples

collapse all

Get the label for signal index 29 in model ex_slrt_sf_car.

tg = slrt;
signal_label = getsignallabel(tg, 29)
signal_label =

    'turbine torque'

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink Real-Time kernel and apply the required Ethernet link settings.

Example: tg

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.

Note

Signal access by signal index will be removed in a future release. Access signals by signal name instead.

Output Arguments

collapse all

You must explicitly assign the signal label. The signal name is not a signal label.

Introduced in R2014a