Example of Connecting Industrial Graphics to InTouch Tags
- Last UpdatedApr 11, 2022
- 3 minute read
This example shows you how to connect a tank symbol with a percent vertical fill animation created by the Industrial Graphic Editor to an InTouch tag.
You do this in three main steps:
-
Create a sample Tank as an Industrial Graphic.
-
Create the InTouch application.
-
Derive and view the sample tank in WindowViewer.
To create a sample Tank as Industrial graphic
-
In the IDE, create a new symbol called "Tank" and open it in the Industrial Graphic Editor.
-
Paste a rectangle on the canvas. Change its appearance as needed.
-
Create a colored polygon element that represents a cutout of the tank to show the tank level.

-
Click on the canvas.
-
On the Properties menu, in the Graphic group, select Edit.
Alternatively, double-click the graphic object.
The Edit Custom Properties dialog box appears.
-
Add a custom property called Level.
-
Configure the property details. Do the following:
-
In the Data Type list, click Float.
-
In the Default Value box, type 0.

-
-
Click OK.
-
Double-click on the polygon element that represents the tank level.
The Edit Animations dialog box appears.
-
Add a % Vertical Fill animation.
-
In the Analog box in the right pane, type the name of the custom property. In this example, it is Level.

-
Click OK to close the Edit Animations dialog box.
-
Click Close and Save to close the Industrial Graphic Editor.
To create the InTouch application
-
In the System Platform IDE, create a new managed InTouch application. For more information, see Creating a Managed InTouch Application.
-
Open the managed InTouch application in WindowMaker.
-
Create a new window called TankDisplay.
-
Open the Tagname Dictionary and create a new real InTouch tag named TankLevel.
-
Click the Embed Industrial Graphic icon.
The Galaxy Browser dialog box appears.
-
Select the Tank symbol and click OK.
-
Click in the window at the new location to embed the symbol.
The Tank symbol is embedded into the window.

-
Right-click the embedded Industrial Graphic, point to Industrial Graphic "Tank", and then click Edit Symbol Properties.
The Edit Symbol Properties dialog box appears.
-
Select the custom property Level.
-
In the Default Value box, type TankLevel. You can also click the ellipsis button to browse for TankLevel using the Select Tag dialog box.
-
Click OK.
-
Paste a slider on the window and configure it with the local InTouch tag TankLevel.
-
Save the changes and close WindowMaker.
The managed InTouch application is automatically checked in.
To derive and test the sample tank
-
In the System Platform IDE, derive an instance of the managed InTouch application and deploy it together with a WinPlatform and a ViewEngine instance.
-
Open the InTouch Application Manager and start the listed application in WindowViewer.
The tank and the slider appear on the window in WindowViewer.
-
You can move the slider to change the tank level.
