Display tag's value

<< Click to Display Table of Contents >>

Navigation:  Examples > Change the text of an object >

Display tag's value

Previous pageReturn to chapter overviewNext page

Let's assume we want to display the value of some tag on the screen (the pressure level in the tank).

 

1. Create a tag named Pressure:

clip0037

 

2. Create a Text/EditField object (other objects with the Text Input property can be used):

 

textlabelcommon

 

3. Set up the “Text Input” property, bind the Pressure tag, select the “Tag Value” type, fill in the “Text before” and “Text after” fields::

 

displaytextinput

 

4. Let's Run simulation to check the settings:

 

displaytext

 

You can download this project here.