Skip to content

LED Indicator Array ​

The LED indicator array shows the on or off state of several values with a grid of round indicator lights. A light turns on when its value is greater than or equal to the threshold, and turns off when the value is below it. It suits monitoring of switch signals, alarm bits, and other Boolean states.

Typical uses include the closed or open state of several relays, the individual alarm bits of a device, and the action state of limit switches. Each value gets its own light, so you can see at a glance which channels are active.

Data Requirements ​

  • In Text Split mode, the number of values in each data item sets the number of lights. The plugin does not limit the count.
  • The first value cannot be a missing value (a value that cannot be converted to a number). If the first value is a missing value, the whole data item is ignored, and all lights keep their previous state.
  • If any other value is a missing value, its light is shown in gray.
  • The plugin does not convert units or limit values to 0 or 1. Every value is compared with the threshold.

Data Source ​

For the general data input rules, see the Plugins Overview. This section covers only the behavior specific to this plugin. Text Split and Variable Rendering are mutually exclusive: enabling one turns the other off.

Text Split (Default) ​

Enabled by default. The mode is on when the Enable text mode checkbox in the Text split settings popup is checked.

  • The received text is checked against the Prefix first. If the Prefix is not empty, the text must start with it, or the whole data item is ignored. After the check passes, the Prefix is removed from the start of the text.
  • After the Prefix is removed, the text is split by the Separator. If the Separator is empty, the whole data item is ignored. The default Separator is an English comma.
  • Completely empty parts are skipped and do not take up a position. A part that contains only whitespace cannot be converted to a number, so it is treated as a missing value.
  • Each value gets one light. The count changes with each data item, and the grid is rearranged to match.
  • A part that cannot be converted to a number gets a gray light. If that part is the first one, the whole data item is ignored.

Example: the Separator is ,, the Prefix is empty, and the threshold is 0.5. When 1,0,abc,2 is received, lights 1 and 4 are on, light 2 is off, and light 3 is gray. If the Prefix is set to D:, D:1,0 is parsed as 1,0, and X:1,0 is ignored.

Variable Rendering ​

  • To enable it, check the Enable variable mode checkbox in the Variable rendering settings popup. While it is on, received text is no longer parsed, and the number of lights equals the number of checked variables.
  • At least one variable must be checked before the mode can be enabled. If none is checked, the mode stays off and a tip reads "Check at least one variable in the list first."
  • The variable list in the popup shows only numeric variables. Boolean and string variables do not appear.
  • Lights follow the order of the variable list, from top to bottom. The order in which you checked the variables does not matter. Labels show the variable names, and the threshold applies to variable values as well.
  • While the mode is on, the variable list is locked. Turn the mode off before you change the checked variables.
  • A variable value that cannot be converted to a number gets a gray light. If the first variable is a missing value, that reading is ignored.
  • Under Refresh settings, Refresh mode has two options. Refresh on receive (default) reads the values once each time a data item is received. Timed refresh reads them at each refresh interval. The interval is in milliseconds, with a minimum of 10 and a default of 100. The interval can only be edited when Timed refresh is selected.
  • After you switch the variable mode, the number of lights and the labels update only when the plugin next gets values.

Channel Settings ​

This plugin has no Channels button. The number of lights comes from the data, so you cannot add or remove channels. You also cannot set channel names, colors, or ranges.

Display ​

  • On: green, with a radial gradient that is lighter at the center and darker at the edge.
  • Off: light gray.
  • Missing value: gray. It looks close to the off color, so the two are not easy to tell apart.
  • When there is no data, No data appears at the center of the display area.
  • The lights form a grid. The number of columns is the square root of the value count, rounded up, to a maximum of 8 columns. For example, 1 light uses 1 column, 2 to 4 lights use 2 columns, 5 to 9 lights use 3 columns, and 10 to 16 lights use 4 columns.
  • Each light has a label below it. The label color follows the light's position in the default palette and does not change with the on or off state. The label reads Channel N (N starts at 1). In variable rendering mode, the label is the variable name.
  • A long label shrinks its font to fit the cell. If the text still does not fit at the smallest size, it may extend beyond the cell.

Toolbar ​

IconButtonDescription
VariableVariableOpens the Variable rendering settings popup. The button shows as checked while variable rendering is on. Clicking the button does not switch the mode by itself. Check Enable variable mode in the popup to turn it on.
TextTextOpens the Text split settings popup. The button shows as checked while text split is on. The popup contains the Enable text mode checkbox and the Prefix and Separator settings.
HelpHelpOpens this plugin's online help page in your browser.

The toolbar also has the following control. It is not a button, and it sits to the left of the buttons:

  • Threshold: spin box (control). Sets the threshold. See Threshold.

Threshold ​

  • The default threshold is 0.5. The valid range is -1000000 to 1000000, with up to 2 decimal places.
  • A value greater than or equal to the threshold turns its light on. A value below the threshold turns it off.
  • When you change the threshold, the lights are judged again at once, using the most recent values. You do not need to wait for new data.

Notes ​

  • When a clear request arrives, all lights return to the No data state.
  • When both Text Split and Variable Rendering are off, the plugin splits received text by English commas.