User`s guide
getsignalidsfromlabel
Purpose Return vector of signal indices
Syntax MATLAB command line
getsignalidsfromlabel(target_object, signal_label)
target_object.getsignalidsfromlabel(signal_label)
Arguments
target_object
Name of a target object. The default name
is
tg.
signal_label
Signal label (from S imulink model).
Description getsignalidsfromlabel returns a vector of one or more signal indices
that are associated with the labeled signal,
signal_label.This
function assumes that you have labeled the signal for which you request
the index (see the Signal name parameter of the “Signal Properties
Dialog Box” in the Simulink documentation). Note that the xPC Target
software refers to Simulink signal names as signal labels.
Examples Get the vector of signal indices for a signal labeled Gain.
>> tg.getsignalidsfromlabel('xpcoscGain')
ans =
0
See Also getsignallabel
18-66