TextMonitorNode

A widget representing a text display field

  • Special Attributes
Name Type Description
geometry Rect A rectangle describing the position and dimensions of the widget
foreground Color Widget foreground color
background Color Widget background color
border-color Color Widget border color
border-width Number Widget border thickness in pixels
font Font Widget display font
alignment Alignment Display text alignment
format String Text display format, value is one of “String, Decimal, Engineering, Exponential, Compact, Hexadecimal, Binary”
precision Number Number of decimal places to display. When set, overrides the PV’s default precision. -1 by default (uses PV precision)
show-units Bool Display engineering units from the PV, False by default
alarm-border Bool Change border color based on PV alarm severity, False by default
pv String The PV to read data from
visibility String A pv that determines the visibility of the widget, visibility is turned off if the PV’s value is zero. This logic is inverted if the !Not tag is used instead of String
  • Examples
- !TextMonitor
    geometry: 5x0 x 120x20
    pv: "$(P)$(R)Description_RBV"
    alignment: CenterRight

A format can be specified to control numeric display:

- !TextMonitor
    geometry: 100x20
    background: *black
    foreground: *alarm_green
    format: "Engineering"
    pv: "$(P)$(R)Pressure"