Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

getsignalidsfromlabel - 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_name

Signal label (from Simulink 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

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS