Simulink does not have a signal of type "string". To work with strings, you must use their numeric (ASCII) encodings.
The Stream Output block is designed for sending numeric values formatted as ASCII, perhaps surrounded by additional characters. If you need to send, say "x=3.14" in one time step and "x=3.18" in the next time step, you would use this block.
With fixed-size messages that don't contain the input signal numeric value encoded as ASCII string, you may get better results using the Packet Output block. Please encode your messages into ASCII and then feed such encoded messages as numeric inputs into this block. To select different messages based on some input signal, it would be probably necessary to use some sort of look-up table that would translate the input signal into the encoded message.
Best Answer