GetQualityName

GetQualityName — converts the quality value of a point to a text string.

Syntax

GetQualityName (quality)
    

Arguments

quality

A value that indicates the quality of the point, as returned by the function PointMetaData.

Returns

A text string corresponding to the quality.

Description

This function converts the quality value of a point to a text string. The function is created in the script Quality.g, and is available to any DataHub script that requires or includes the Quality.g file, using one of these statements:

    require ("Quality");

    include ("Quality");

[Note]

DataHub point information includes a data quality indication that is consistent with the OPC specification. Even if you are not working with OPC data, you may still wish to use the quality in your custom applications and DataHub scripts.

The possible quality strings are:

ValueString
OPC_QUALITY_BADBad
OPC_QUALITY_COMM_FAILUREComm Failure
OPC_QUALITY_CONFIG_ERROR Config Error
OPC_QUALITY_DEVICE_FAILUREDevice Failure
OPC_QUALITY_EGU_EXCEEDED EGU Exceeded
OPC_QUALITY_GOODGood
OPC_QUALITY_LAST_KNOWNLast Known
OPC_QUALITY_LAST_USABLE Last Usable
OPC_QUALITY_LOCAL_OVERRIDELocal Override
OPC_QUALITY_MASK Mask
OPC_QUALITY_NOT_CONNECTEDNot Connected
OPC_QUALITY_OUT_OF_SERVICE Out Of Service
OPC_QUALITY_SENSOR_CALSensor Cal
OPC_QUALITY_SENSOR_FAILURE Sensor Failure
OPC_QUALITY_SUB_NORMALSub Normal
OPC_QUALITY_UNCERTAINUncertain