Smart.Knob is a rotary control for setting a value. It extends Tank.

Because the component extends Smart.Tank, clamping, coercion to an interval, logarithmic scales, alarm ranges, units, inversion, right-to-left layout and the keyboard behaviour of the slider are inherited. This includes the mechanicalAction property, which defines when the control commits its value.

A controller front panel

Four settings of a temperature controller. Drag around a dial or up and down over it to change the value; the arrow keys, Home and End also work. Each change is a change event that the application writes to the controller, listed under the panel. The setpoint knob carries the alarm ranges of the loop, so the operator sees where the setting sits before it is written.

TIC-2108 Reactor temperature
Setpoint 0 to 150 °C
Output bias 0 to 100 %
Ramp rate 0.5 to 20 °C/min
High alarm 100 to 150 °C, steps of 5
  1. Nothing written yet. Turn a knob.

Styles

The knobStyle property selects a pointer, a dot on the dial or an arc that fills from the start of the scale.

pointer
dot
arc

Scales and ranges

Ranges are inherited from Tank, so a range has the same meaning as on a gauge or a tank. A logarithmic scale keeps the bottom decades usable, and coerce with an interval snaps the value to steps.

Setpoint, bar
Logarithmic, 1 to 1000
Coerced to 10
Disabled

Keyboard: Tab to a knob, then use the arrow keys to step, Page Up and Page Down for larger steps, and Home and End for the limits.