XC_Tank

<< Click to Display Table of Contents >>

 

XC_Tank

1.Insert a new XControl in the library and name it as "XC_Tank".

2.Configure it according to the next figure. Two Texts ("Name" and "00") and one Rectangle are used.

XC_Tank XControl

XC_Tank XControl

3.Create the Source Property to access the properties of the XFolder XF_AnalogMeasurement.

Source Property

Source Property

4.In the Text object used to display the level's value, change the format to Percent and one decimal place.

Text format

Text format

5.In the Text's Value property, create an Analog Link to the Value Property of the object XF_AnalogMeasurement, according to the next figure.

Analog Link

Analog Link

6.In the Rectangle's VerticalPercentFill property, create a Simple Link to the Value Property of the object XF_AnalogMeasurement.

Simple Link

Simple Link

7.In the Name Text, change its Layer property to 2 (two).

8.Still in the Name Text, create a Simple Link to the Name Property of the object XF_Tank. As the Source Property accesses an XF_AnalogMeasurement object, users must add a "Parent" expression, which allows accessing the parent object of XF_AnalogMeasurement.

Simple Link

Simple Link

 

NOTE

The Link in the previous procedure appears in red because a library cannot access the hierarchy of objects used in an application.

 

9.Save these changes and register the library.

Was this page useful?