dpElementType()

Returns the data type.

Synopsis

int dpElementType(string dp);

Parameter

Parameter Meaning
dp Datapoint element

Return Value

In the event of a failure dpElementType() returns -1, otherwise the integer value of the data type.

Errors

The errors can be retrieved with getLastError(). This includes missing arguments or when the datapoint does not exist

Description

The function dpElementType() returns the data type of a datapoint element.

Condition as a function of the data type of the datapoint element valve17.opening.

main()
{
  if (dpElementType("Valve17.opening")==DPEL_FLOAT)
  else if(dpElementType("Valve17.opening")==DPEL_INT)
}

Assignment

Datapoint function

Availability

CTRL