It seems to me you are describing an Enumerated type. Use the enumerated type as an indicator and pass the code to the input. But that really doesn't give you a "text" string. Do you really want the result to be a string? That can be done using a case structure, or creating yourself an array of strings that matches the code and then using the returned code to select the index of you array.
Thanks, thats how I imagined it would work. But how do I create the 1 by 3 indexed string matrix (the purple box). I cannot find this anywhere. I am searching for indexed string and I cannot find in example finder!!!
Thanks,
Nevica
Place an array constant and a string constant on the block diagram.
Now drag the string constant into the array constant with your mouse. It should turn from black to pink.
Now you have created an "Array of string" constant.