We create tag with name State:
In this example we'd like to display tag's value in Text/EditField object:
We need to enable Text input property and fill it like this:
Click OK to confirm your changes and Run simulation to check your settings:
You can download this project here.