HP Operations Manager for Windows

opcdata_get_double()


   #include opcapi.h

   double *opcdata_get_double(
            const         opcdata data,           /* in */
            int           attribute               /* in */
                            );

Parameters

data
HPOM data structure containing the queried attribute.

attribute
Specifies the attribute that is queried.

Description

The function opcdata_get_double() returns the value of a double attribute in data.

Return Values

Returns the real value, or, OPC_DOUBLE_UNDEF if no value could be retrieved because data was empty or attribute was not allowed. Note that the real value could also be OPC_DOUBLE_UNDEF.

If an error occurs, for example an invalid attribute is specified, the function returns 0.0..

Versions

HPOM for Windows A.07.50 and later

See Also

OPCDTYPE_MONITOR_MESSAGE