dpGetName()

Returns the data point name for the passed data point ID and element ID.

Synopsis

string dpGetName(uint dpId, int elId[, int sysnum = ownSystem]);

Parameters

Parameter Description
dpId Data point ID.
elId Data point element ID.
sysnum

Optional parameter.

System number. Default: Own system.

Return Value

Data point name. Empty string in case of an error.

Description

Returns the data point name for the passed data point ID and element ID.

Example

main()
{
  uint dpID;
  int elID;
  string dpName;
  dpGetId("System1:ExampleDP_Arg1.", dpID, elID);
  dpName = dpGetName(dpID, elID);
  DebugN("DP ID: ", dpID, "DPE ID: ", elID);
  DebugN("DP Name: ", dpName);
}

Assignment

Data point function

Availability

CTRL