GetQualityName (quality)
A value that indicates the quality of the point, as returned by the function PointMetaData.
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");
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:
Value | String |
---|---|
OPC_QUALITY_BAD | Bad |
OPC_QUALITY_COMM_FAILURE | Comm Failure |
OPC_QUALITY_CONFIG_ERROR | Config Error |
OPC_QUALITY_DEVICE_FAILURE | Device Failure |
OPC_QUALITY_EGU_EXCEEDED | EGU Exceeded |
OPC_QUALITY_GOOD | Good |
OPC_QUALITY_LAST_KNOWN | Last Known |
OPC_QUALITY_LAST_USABLE | Last Usable |
OPC_QUALITY_LOCAL_OVERRIDE | Local Override |
OPC_QUALITY_MASK | Mask |
OPC_QUALITY_NOT_CONNECTED | Not Connected |
OPC_QUALITY_OUT_OF_SERVICE | Out Of Service |
OPC_QUALITY_SENSOR_CAL | Sensor Cal |
OPC_QUALITY_SENSOR_FAILURE | Sensor Failure |
OPC_QUALITY_SUB_NORMAL | Sub Normal |
OPC_QUALITY_UNCERTAIN | Uncertain |
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.