Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Gauge

  • Last UpdatedJun 25, 2024
  • 2 minute read

Use scripts to set and get values for the properties of the Gauge control.

Basic

Property

Scripting Supported

Example

Name

Yes

Writable

Readable

To set the property

control.findById("ID").tagName =
"Value for Name";

To get the value of the property

control.findById("ID").tagName;

XML Node

Yes

Readable

To get the value of the property

control.findById("ID").xmlNodeBoundTo;

Description

Yes

Writable

Readable

To set the property

control.findById("ID").description = "Value for Description";

To get the value of the property

control.findById("ID").description;

Tooltip

No

Not Applicable

Default Value

No

Not Applicable

Appearance

Property

Scripting Supported

Script

Visible

Yes

Writable

Readable

To set the property

control.findById("ID").visible = true;

To get the value of the property

control.findById("ID").visible;

Label Position

No

Not Applicable

Label-Control Area

No

Not Applicable

Retain Space

No

Not Applicable

Scale Minimum Value

Yes

Writable

Readable

To set the property

control.findById("ID").scaleMin = 0;

To get the value of the property

control.findById("ID").scaleMin;

Scale Maximum Value

Yes

Writable

Readable

To set the property

control.findById("ID").scaleMax = 0;

To get the value of the property

control.findById("ID").scaleMax;

Scale Start Angle

Yes

Writable

Readable

To set the property

control.findById("ID").scaleAngleStart = 0;

To get the value of the property

control.findById("ID").scaleAngleStart;

Scale End Angle

Yes

Writable

Readable

To set the property

control.findById("ID").scaleAngleEnd = 0;

To get the value of the property

control.findById("ID").scaleAngleEnd;

Scale Major Unit

Yes

Writable

Readable

To set the property

control.findById("ID").majorUnit = 0;

To get the value of the property

control.findById("ID").majorUnit;

Scale Minor Unit

Yes

Writable

Readable

To set the property

control.findById("ID").minorUnit = 0;

To get the value of the property

control.findById("ID").minorUnit;

Value Position

Yes

Writable

Readable

To set the property

control.findById("ID"). showTargetIndicator=true;

To get the value of the property

control.findById("ID"). showTargetIndicator;

Show Target Indicator

No

To set the property

control.findById("ID"). showTargetIndicator=true;

To get the value of the property

control.findById("ID"). showTargetIndicator;

Custom Style Sheet Identifier

No

Not Applicable

Advanced

Property

Scripting Supported

Example

On Initialize

Yes

For more information, see scripting guidelines for On Initialize property.

Range Color

Yes

For more information, see scripting guidelines for Range Color property.

ID

No

Not Applicable

Target Value

Yes

Writable

Readable

To set the property

control.findById("ID").targetValue= 60;

To get the value of the property

control.findById("ID").targetValue;

Unit of Measurement

Yes

Writable

Readable

To set the property

control.findById("ID"). labelUnitOfMeasure="Sec";

To get the value of the property

control.findById("ID"). labelUnitOfMeasure;

Decimal Places (Precision)

Yes

Writable

Readable

To set the property

control.findById("ID"). valuePrecision=2;

To get the value of the property

control.findById("ID"). valuePrecision;

Scripts

Property

Scripting Supported

Example

Name

Yes

return "Value for Name";

Description

Yes

return "Value for Description";

Visible

Yes

return true;

Value

Yes

return 90;

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in