getcompname

Returns the name of a component for a given data type. The function has two forms. Use the first form when there is zero or at most one subcase and second form when there are multiple subcases.

Attention: Available only with Activate commercial edition.

Syntax

getcompname(filename, datatype, compindex)

getcompname(filename, subcase, datatype, compindex)

R = getcompname(...)

Inputs

filename
Path of the file.
Type: string
subcase
Subcase name or index in the file.
Type: string | int
datatype
Data type name or index in the file.
Type: string | int
compindex
Index of a component in the file.
Type: integer

Outputs

R
Name of component.

Examples

Basic getcompname without subcase:

getcompname('Path/To/File/ANGACC','Angular Acceleration',2)
R = X-comp. ang. acc.
Basic getcompname with subcase:
getcompname('Path/To/File/vdd_crc_r60_acc_crc.res','Results','Request_ptr_rear_brake_torque_data',2)
R = velocity