Component: Indicator Gauge (Indicators)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.3 (Release)
Category Indicators


Image Indicator Gauge component

Simulation only round gauge/dial for SCADA applications. The range of values displayed is easily adjusted.

Examples

No additional examples


Downloadable macro reference

This component does not contain any downloadable macros

Simulation macro reference

GetValue

Get the current scale value - this will be the most recent value set using "SetValue", or from the most recent mouse click if the component is in "Control"

mode.

Parameters

This macro has no parameters


Return value

FLOAT


SetValue

Set the pointer to the given value on the scale. Returns the angle required to point at the given value.

Parameters

FLOAT Value
The value on the scale to move the pointer to.


Return value

FLOAT


SetRange

Set the minimum and maximum values of the scale

Parameters

FLOAT Minimum
Minimum value for the scale
FLOAT Maximum
Maximum value for the scale


Return value

This call does not return a value



Property reference

Minimum

This property is of type Floating point and can be referenced with the variable name val_min.

Minimum value that the meter will show (fully counter-clockwise)

Maximum

This property is of type Floating point and can be referenced with the variable name val_max.

Maximum value that the meter will show (fully clockwsie)

Startup State

This property is of type Fixed list of ints and can be referenced with the variable name StartupState.

Sets the initial value when loading the project or when the runtime starts.

Default Value

This property is of type Floating point and can be referenced with the variable name DefaultValue.

The default value used on initialise or runtime start.

Show Title

This property is of type True or false and can be referenced with the variable name ShowTitle.

Decides if the component title is shown

Title Colour

This property is of type Color picker and can be referenced with the variable name TitleColour.

Title Label Color

Title Text

This property is of type Line of text and can be referenced with the variable name TitleText.

Title Label Text

Title Scale

This property is of type Floating point and can be referenced with the variable name TitleScale.

Controls the size of the title text on the panel, default 1.2

Show Label

This property is of type True or false and can be referenced with the variable name ShowLabel.

Decides if a label is shown detailing current setting of the control knob.

Label Colour

This property is of type Color picker and can be referenced with the variable name LabelColour.

Sets the label colour

Label Units

This property is of type Line of text and can be referenced with the variable name LabelUnits.

Adds a unit to the end of the label

Label Decimal Points

This property is of type Unsigned integer and can be referenced with the variable name LabelDecPoints.

Number of decinal points to draw on the label

Label Scale

This property is of type Floating point and can be referenced with the variable name LabelScale.

Sets the size of the label on the panel, default 1.0

Decimals

This property is of type Signed integer and can be referenced with the variable name dec_places.

Number of decimal places to show on the number labels.

Text Size %

This property is of type Signed integer and can be referenced with the variable name num_size.

Height of the number label text.

Font

This property is of type Font picker and can be referenced with the variable name num_font.

Font for the number labels.

Divisions

This property is of type Signed integer and can be referenced with the variable name marks_count.

Set the number of major scale divisions - these will be given number value labels.

Subdivisions

This property is of type Signed integer and can be referenced with the variable name marks_subdiv.

Number of smaller scale divisions in between the numbered ones.

BG Color

This property is of type Color picker with transparency and can be referenced with the variable name bg_color.

Colour for the meter background.

Positive Color

This property is of type Color picker and can be referenced with the variable name ink_color.

Colour for the number labels for greater than zero.

Negative Color

This property is of type Color picker and can be referenced with the variable name neg_color.

Colour for the number labels for value greater than zero.

Needle Color

This property is of type Color picker and can be referenced with the variable name NeedleColor.

No additional information