dpDelete()

Deletes a data point.

Synopsis

int dpDelete(string dpname);

Parameters

Parameter Meaning
dpname Name of the data point to be deleted. In case of a distributed system the name of the data point to be deleted must contain the system name.

Return Value

dpCreate() returns 0, in the event of a failure returns -1...

Errors

Errors can be retrieved with getLastError(). This includes missing arguments or if the data point does not exist.

Description

The function dpDelete() deletes the data point with the specified name.

Example

The example deletes the data point engine1.


main()
{
  string dpB = "engine1";
  int retV;
  retV = dpDelete(dpB);
  DebugN(retV);
}

Assignment

Data point function, Waiting Control function

Availability

CTRL