Quality Decoder block
Decodes the quality of the input field into values in the output fields.
Quality Decoder block
Description
The quality of the input field(s) is used to determine the value of the output field(s). The user specifies the values to use for good and bad quality input fields. The data type of the output field must be specified.
quality decoder block
Block Type
Data quality block
Input/Output ports
The input port can accept any number of fields of any type.
There is an output field for every input field.
When new fields are added to the input port an output field with the same name will be created
Functions performed on tags
-
On the values - The output value is determined by the input quality. If the input quality is good the value for good quality is used. If the input quality is bad the value for bad quality is used.
-
On the timestamp - The input field time stamp is set on the output field.
-
On the quality - The output quality is always good.
Example
In the table below the input, value and quality, to the quality decoder block is listed in the first two columns, the output field of the block is listed in the third column where the data type is an Integer. In the case of the input field quality, a value of 0 indicates Bad quality while and input of 1 indicates Good quality. During configuration, a good quality field is assigned a value of 0 and a bad quality field is assigned a value of 1. A post-fix is applied to distinguish between the input and output fields.
In the table below the input, value and quality, to the quality decoder block is listed in the first two columns, the output field of the block is listed in the third column where the data type is a Double. In the case of the input field quality, a value of 0 indicates Bad quality while and input of 1 indicates Good quality. During configuration, a good quality field is assigned a value of 5.5 and a bad quality field is assigned a value of 2.5. A post-fix is applied to distinguish between the input and output fields.
In the table below the input, value and quality, to the quality decoder block is listed in the first two columns, the output field of the block is listed in the third column where the data type is a String. In the case of the input field quality, a value of 0 indicates Bad quality while and input of 1 indicates Good quality. During configuration, a good quality field is assigned a value of Good and a bad quality field is assigned a value of Bad. A post-fix is applied to distinguish between the input and output fields.
Related topics: