String Lookup Table block
The String Lookup Table block converts an integer value into a string. The string associated with each value is specified in a lookup table.
String Lookup Table block
Description
The String Lookup Table block converts an integer value into a string value. The associations between integers and strings are stored in a lookup table. The block also has a default string that is used for output when the input has bad quality or the integer value cannot be found in the lookup table.
diagram showing the string lookup block
Block Type
Data Transformation block
Input/Output ports
The input port may only contain fields of type integer.
The output port has only 1 string field.
Functions performed on tags
-
On the values - The output value is the string corresponding to the input value. If the input value does not correspond to any value in the table the default output string will be used as output. If the input quality is bad the default output string will be used as output. If any string in the table or the default output string is empty, the output will be an empty string.
-
On the timestamp - The output time stamp is the same as the input time stamp.
-
On the quality - The output quality is always good.
Example
We will assume that for a field entitled "Symptom_Value" we have the following possibilities,
Then if the value of the "Symptom_Value" is 2, the script block will create a field, of type string, called "Symptom" who's string value is Cavitation.
Terminology
-
String data - a (usually) short piece of text consisting of letters, numbers or symbols.
Related topics: