xPC Target    
getparamid

Get a parameter index or property name from the parameter list

Syntax

MATLAB command line

Arguments


Name of a target object. The default name is tg.
block_name
Simulink block path and name.
parameter_name
Name of a parameter within a Simulink block
flag
If flag = property, then return the property name for the parameter. If flag = numeric, then return a number index. This argument is optional with the default behavior to return a property name.
target_object

Description

Method of a target object. Returns the index of a parameter in the parameter list based on the path to the parameter name. The names must be entered in full and are case-sensitive.

Examples

Get the property name for the parameter Gain in the Simulink block Gain1, incrementally increase gain, and pause to observe signal trace.

Get the property name (P0, P1, . . .) of a single block.

Get the property index (0, 1, . . .) of asingal block.

P5 is a property of the target object. For example, you could assign a value to the gain with tg.p5 = 1000.

See Also

The xPC Target scope object method getsignalid. The xPC target M-file demo scripts listed in xPC Target Demos.


 getlog getscope