dpDelete()
Deletes a datapoint based on the datapoint name.
Synopsis
int dpDelete(string dpname);
Parameters
| Parameter | Description |
|---|---|
| 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
The function 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.
dpDelete() 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
