User`s guide
getsignalid
Purpose Signal index or signal property from signal list
Syntax MATLAB command line
getsignalid(target_object, 'signal_name')
tg.getsignalid('signal_name')
Arguments
target_object
Name of an existing target object.
signal_name
Enter the name of a signal from your Simulink
model. F or b locks with a single signal, the
signal_name is equal to the block_name.For
blocks with multiple signals, the xPC Target
software appends S1, S2 ... to the
block_name.
Description getsignalid returns the index or n ame of a signal from the signal list,
based on the path to the signal name. The block names must be entered
in full and are case sensitive. Note, enter for
block_name the mangled
name that Real-Time Workshop uses for code generation.
Examples Get the signal index for the single signal from the Simulink block Gain1.
getsignalid(tg, 'Gain1') or tg.getsignalid('Gain1')
ans = 6
See Also xPCTargettargetobjectmethodgetpara mid.
xPC Target demo scripts listed in “xPC Target Demos” on page 6-9.
Troubleshooting chapter question “Why Does the getparamid Function
Return Nothing?” on page 15-33.
18-65