Skip to main content
Version: 1.0.4

Moving Analog Indicator

A high-performance-HMI value-in-context bar: alarm bands stay muted until entered, and the process value arrow sits against a setpoint tick. It shows deviation from target, not just magnitude.

The Moving Analog Indicator component as it renders with its default settings.The Moving Analog Indicator component as it renders with its default settings.

Reach for it when you need:

  • Controlled values where the operator cares about deviation from setpoint

Component name: MovingAnalogIndicator · Category: Display

In the palette: HP HMI value-in-context bar: alarm bands (muted until entered), PV arrow + setpoint tick

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
orientationenumverticalOptions: vertical · horizontal.
flipbooleanfalsePut the PV arrow on the opposite side (right↔left when vertical, bottom↔top when horizontal).
processValuenumber50
setpointValuenumber50
rangeLonumber0
rangeHinumber100
desiredLonumber40Bottom of the desired (good) band.
desiredHinumber60
loAlarmnumber20Low alarm (L, level-2/yellow).
hiAlarmnumber80
loloAlarmnumber10Low-low alarm (LL, level-1/red).
hihiAlarmnumber90
unitstring""
showValuebooleantrue
valueColorcolorvar(--widget-value)
valueFontSizenumber13
decimalsnumber0Fraction digits shown. 1.0.4
showScalebooleantrueShow the range low / high end labels.
scaleFontSizenumber7
critColorcolor#d32f2f
warnColorcolor#fbc02d
desiredColorcolor#b8daffDesired (good) band colour — a solid pale blue. HP HMI: blue, not green — green trains operators to read a full screen as "all clear". The moving PV arrow stays neutral (matches the setpoint arrow / strokeColor) and only turns warn/crit at the limits.
mutedColorcolor#cbd5e1Inactive-band colour (screen stays grey).
strokeColorcolorvar(--widget-label)
labelstringMAI
enableLabelbooleantrue
labelColorcolorvar(--widget-label)
labelSizenumber11
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

The muted-until-entered banding is deliberate. Colouring the bands permanently turns the screen into a wall of red and amber that stops meaning anything.

By default a numeric readout shows whole numbers. decimals (0–6) is what gets the fraction back: a tag reading 23.998 displays as 24 until you ask for more, and Math.round is not a formatting choice — it is a loss of data with no way to recover it from the screen. Every numeric widget formats through the same helper, so two widgets bound to the same tag cannot disagree about how many digits it has.