Configuring the String Lookup Table block
In this section we demonstrate how to configure the String Lookup Table block. The String Lookup Table block converts an integer value into a string. Assume that we have an integer input field entitled Symptom_Value and that the string output field name must be Symptom. We would like to set-up the associations shown in the following table in our string lookup table.
Return to Overview of the String Lookup Table block
To configure the String Lookup Table block
Symptom values in the string lookup block
-
Ensure that only fields of type integer are connected to the input port of the String Lookup Table block.
-
To open the block property page (the page on which the block configuration is specified), either double click on the block or right-click on the block and select Block Properties.
-
In the Default Output box, specify a default output string. This string will be used when the quality of the input field is bad or when the input field value is not in the table. A good choice could be Error.
-
In the Fields pane. select the Index to be used from the drop-down list. The index is the integer field that is used to determine what the string value should be for the output field. It should be Symptom_Value for our example.
-
In the Fields pane. select the Quality to be used from the drop-down list. The 2 options for the output field quality are to always set the output quality to good or to use the quality of the Index input field.
-
Specify the output field name in the Output box, this should be Symptom.
-
Now the associations must be created, it is possible to import associations, if available, using the
button. A table of associations may be created in notepad or Excel and saved as a comma separated variables file. We will assume however that we do not have a table available to be imported.
-
Begin with Value equal to 0 (Value may be changed using the spin control provided) and type Normal in the String box. Click on the
button to create this association. The Value should automatically go up to 1, type Leakage in the String box and click on the Add String button to create this association. Continue until all the associations have been created.
-
The completed table may be exported for use elsewhere. Click on the
button and specify the name of the desired csv.
-
To delete a particular association, click on the association in the list window and then click on the
button
-
To delete all associations click on the
button.
Related topics: