dpDelete()

Deletes a datapoint.

Synopsis

int dpDelete(string dpname);

Parameters

Parameter Meaning
dpname Name of the datapoint to be deleted. In case of a distributed system the name of the datapoint 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 datapoint does not exist.

Description

The function dpDelete() deletes the datapoint with the specified name.

Example

The example deletes the datapoint engine1.


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

Assignment

Datapoint function, Waiting Control function

Availability

CTRL