Understand reading characteristics data
- Last UpdatedNov 04, 2024
- 2 minute read
When the SRO subscribes to the sample characteristic data change notification from the middleware, it receives notice of the new sample when it is generated. The SRO receives an update from the middleware, and a list of output attributes are exposed at the sample characteristic level. The following table shows a list of the output attributes.
|
Attribute |
Description |
|---|---|
|
Output.RecentSampleID |
Specifies the ID of the most recent sample linked to the characteristic |
|
Output.SpecName |
Specifies the name of the specification that is used to generate the sample |
|
Output.StartEffDate |
Specifies the start effective date and time (in local time) of the QM specification |
|
Output.UnitofMeasurement |
Specifies the unit of measurement for a characteristic |
|
Output.MinSampleSize |
Specifies the minimum sample size for the sample characteristic. If you override the minimum sample size of a characteristic for a particular QM specification, and if the specification is applied to the current situation, the override value is used for minimum sample size. Otherwise, it uses the minimum sample size for the characteristic. |
|
Output.NormalSampleSize |
Specifies the normal sample size for the sample characteristic. If you choose to override the normal sample size of a characteristic for a certain QM specification, and the specification is applied to the current situation, the minimum sample size is used. Otherwise, it uses the normal sample size for the characteristic. |
|
Output.MaxSampleSize |
Specifies the maximum sample size for the sample characteristic If you choose to override the maximum sample size of a characteristic for a certain QM specification, and the specification is applied to the current situation, the minimum sample size is used. Otherwise, it uses the maximum sample size for the characteristic. |
|
Output.Severity |
Specifies the severity description for the characteristic |
|
Output.SeverityCd |
Specifies the severity code for the characteristic |
|
Output.DefaultChart |
Specifies the default chart for the characteristic |
|
Output.DefaultChartCd |
Specifies the default chart code for the characteristic |
|
Output.LRL |
Specifies the lower reasonable limit for the characteristic The LRL is calculated from the qm_spec that is used to generate the sample. |
|
Output.URL |
Specifies the upper reasonable limit for the characteristic The URL is calculated from the qm_spec that is used to generate the sample. |
A few attributes are updated when there is an error while reading the characteristic data, or when the object updates itself with the current data. The following table shows the list of these attributes.
|
Attribute |
Description |
|---|---|
|
Output.ErrorCode |
Specifies the error number that identifies the error |
|
Output.ErrorMessage |
Specifies the error message that contains a description of the error |
|
Output.Status |
Ready indicates the last data read from the MES middleware is of good quality. Busy indicates the object is currently updating itself with the characteristic data
linked to the most recent sample data received from the middleware. Error indicates the object is not able to read the subscribed data from the middleware. The error code and error message are updated with the message received from the middleware. |
For more information about the output attributes, see Characteristic attributes available at run time.